From b19df7a0a5c43122b7feeffdbcd20092b41490ab Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:26:18 -0700 Subject: [PATCH] feat: Automated regeneration of DriveLabels client (#11051) Auto-created at 2024-03-13 03:13:21 +0000 using the toys pull request generator. --- clients/drive_labels/.gitignore | 37 + clients/drive_labels/LICENSE | 201 ++ clients/drive_labels/README.md | 23 + clients/drive_labels/config/config.exs | 20 + .../google_api/drive_labels/v2/api/labels.ex | 1670 +++++++++++++++++ .../google_api/drive_labels/v2/api/limits.ex | 88 + .../google_api/drive_labels/v2/api/users.ex | 91 + .../google_api/drive_labels/v2/connection.ex | 41 + .../google_api/drive_labels/v2/metadata.ex | 26 + ...oogle_apps_drive_labels_v2_badge_colors.ex | 52 + ...oogle_apps_drive_labels_v2_badge_config.ex | 49 + ..._batch_delete_label_permissions_request.ex | 62 + ..._batch_update_label_permissions_request.ex | 62 + ...batch_update_label_permissions_response.ex | 55 + ...google_apps_drive_labels_v2_date_limits.ex | 49 + ...bels_v2_delete_label_permission_request.ex | 54 + ...ve_labels_v2_delta_update_label_request.ex | 73 + ...date_label_request_create_field_request.ex | 53 + ...request_create_selection_choice_request.ex | 61 + ...date_label_request_delete_field_request.ex | 53 + ...request_delete_selection_choice_request.ex | 56 + ...ate_label_request_disable_field_request.ex | 64 + ...equest_disable_selection_choice_request.ex | 67 + ...date_label_request_enable_field_request.ex | 53 + ...request_enable_selection_choice_request.ex | 56 + ...s_v2_delta_update_label_request_request.ex | 155 ++ ...request_update_field_properties_request.ex | 60 + ...label_request_update_field_type_request.ex | 83 + ...request_update_label_properties_request.ex | 57 + ...ate_selection_choice_properties_request.ex | 69 + ...e_labels_v2_delta_update_label_response.ex | 62 + ...te_label_response_create_field_response.ex | 56 + ...sponse_create_selection_choice_response.ex | 56 + ...te_label_response_delete_field_response.ex | 48 + ...sponse_delete_selection_choice_response.ex | 48 + ...e_label_response_disable_field_response.ex | 48 + ...ponse_disable_selection_choice_response.ex | 48 + ...te_label_response_enable_field_response.ex | 48 + ...sponse_enable_selection_choice_response.ex | 48 + ...v2_delta_update_label_response_response.ex | 155 ++ ...sponse_update_field_properties_response.ex | 53 + ...bel_response_update_field_type_response.ex | 48 + ...sponse_update_label_properties_response.ex | 48 + ...te_selection_choice_properties_response.ex | 53 + ...s_drive_labels_v2_disable_label_request.ex | 69 + ...ps_drive_labels_v2_enable_label_request.ex | 58 + .../google_apps_drive_labels_v2_field.ex | 131 ++ ...ve_labels_v2_field_applied_capabilities.ex | 57 + ...apps_drive_labels_v2_field_date_options.ex | 57 + ...pps_drive_labels_v2_field_display_hints.ex | 57 + ...s_drive_labels_v2_field_integer_options.ex | 54 + ...oogle_apps_drive_labels_v2_field_limits.ex | 80 + ...apps_drive_labels_v2_field_list_options.ex | 48 + ...e_apps_drive_labels_v2_field_properties.ex | 52 + ...ive_labels_v2_field_schema_capabilities.ex | 60 + ...drive_labels_v2_field_selection_options.ex | 63 + ...abels_v2_field_selection_options_choice.ex | 121 ++ ...ion_options_choice_applied_capabilities.ex | 59 + ..._selection_options_choice_display_hints.ex | 70 + ...eld_selection_options_choice_properties.ex | 61 + ...tion_options_choice_schema_capabilities.ex | 62 + ...apps_drive_labels_v2_field_text_options.ex | 51 + ...apps_drive_labels_v2_field_user_options.ex | 49 + ...gle_apps_drive_labels_v2_integer_limits.ex | 49 + .../google_apps_drive_labels_v2_label.ex | 130 ++ ...ve_labels_v2_label_applied_capabilities.ex | 57 + ...ve_labels_v2_label_applied_label_policy.ex | 51 + ...pps_drive_labels_v2_label_display_hints.ex | 57 + ...oogle_apps_drive_labels_v2_label_limits.ex | 65 + .../google_apps_drive_labels_v2_label_lock.ex | 71 + ...drive_labels_v2_label_lock_capabilities.ex | 51 + ...e_apps_drive_labels_v2_label_permission.ex | 61 + ...e_apps_drive_labels_v2_label_properties.ex | 49 + ...ive_labels_v2_label_schema_capabilities.ex | 60 + .../google_apps_drive_labels_v2_lifecycle.ex | 57 + ...ive_labels_v2_lifecycle_disabled_policy.ex | 54 + ...ive_labels_v2_list_label_locks_response.ex | 59 + ...bels_v2_list_label_permissions_response.ex | 59 + ...ps_drive_labels_v2_list_labels_response.ex | 54 + ...google_apps_drive_labels_v2_list_limits.ex | 46 + ...google_apps_drive_labels_v2_lock_status.ex | 46 + ...e_apps_drive_labels_v2_long_text_limits.ex | 49 + ...s_drive_labels_v2_publish_label_request.ex | 58 + ...e_apps_drive_labels_v2_selection_limits.ex | 59 + ...google_apps_drive_labels_v2_text_limits.ex | 49 + ...abels_v2_update_label_copy_mode_request.ex | 60 + ...bels_v2_update_label_permission_request.ex | 61 + ..._apps_drive_labels_v2_user_capabilities.ex | 60 + .../google_apps_drive_labels_v2_user_info.ex | 46 + ...google_apps_drive_labels_v2_user_limits.ex | 47 + ...ogle_apps_drive_labels_v2_write_control.ex | 46 + .../v2/model/google_protobuf_empty.ex | 41 + .../v2/model/google_type_color.ex | 55 + .../drive_labels/v2/model/google_type_date.ex | 52 + clients/drive_labels/mix.exs | 66 + clients/drive_labels/test/test_helper.exs | 35 + 96 files changed, 7478 insertions(+) create mode 100644 clients/drive_labels/.gitignore create mode 100644 clients/drive_labels/LICENSE create mode 100644 clients/drive_labels/README.md create mode 100644 clients/drive_labels/config/config.exs create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/api/labels.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/api/limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/api/users.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/connection.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/metadata.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_colors.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_config.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_delete_label_permissions_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_date_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delete_label_permission_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_field_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_selection_choice_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_field_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_selection_choice_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_field_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_selection_choice_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_field_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_selection_choice_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_properties_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_type_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_label_properties_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_selection_choice_properties_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_field_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_selection_choice_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_field_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_selection_choice_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_field_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_selection_choice_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_field_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_selection_choice_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_properties_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_type_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_label_properties_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_selection_choice_properties_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_disable_label_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_enable_label_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_applied_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_date_options.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_display_hints.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_integer_options.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_list_options.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_properties.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_schema_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_applied_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_display_hints.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_properties.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_schema_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_text_options.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_user_options.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_integer_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_label_policy.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_display_hints.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_permission.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_properties.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_schema_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle_disabled_policy.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_locks_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_permissions_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_labels_response.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lock_status.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_long_text_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_publish_label_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_selection_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_text_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_copy_mode_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_permission_request.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_capabilities.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_info.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_limits.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_write_control.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_protobuf_empty.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_color.ex create mode 100644 clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_date.ex create mode 100644 clients/drive_labels/mix.exs create mode 100644 clients/drive_labels/test/test_helper.exs diff --git a/clients/drive_labels/.gitignore b/clients/drive_labels/.gitignore new file mode 100644 index 0000000000..6bf4496152 --- /dev/null +++ b/clients/drive_labels/.gitignore @@ -0,0 +1,37 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +# The directory Mix will write compiled artifacts to. +/_build + +# If you run "mix test --cover", coverage assets end up here. +/cover + +# The directory Mix downloads your dependencies sources to. +/deps + +# Where 3rd-party dependencies like ExDoc output generated docs. +/doc + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez diff --git a/clients/drive_labels/LICENSE b/clients/drive_labels/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/clients/drive_labels/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/clients/drive_labels/README.md b/clients/drive_labels/README.md new file mode 100644 index 0000000000..a278e90e67 --- /dev/null +++ b/clients/drive_labels/README.md @@ -0,0 +1,23 @@ +# GoogleApi.DriveLabels + +Drive Labels API client library. + +An API for managing Drive Labels + +## Installation + +Install this package from [Hex](https://hex.pm) by adding +`google_api_drive_labels` to your list of dependencies in `mix.exs`: + +```elixir +def deps do + [{:google_api_drive_labels, "~> 0.2"}] +end +``` + +## For more information + +Product documentation is available at [https://developers.google.com/drive/labels](https://developers.google.com/drive/labels). + +Library reference documentation is published on Hexdocs at +[https://hexdocs.pm/google_api_drive_labels](https://hexdocs.pm/google_api_drive_labels). diff --git a/clients/drive_labels/config/config.exs b/clients/drive_labels/config/config.exs new file mode 100644 index 0000000000..07afe5f311 --- /dev/null +++ b/clients/drive_labels/config/config.exs @@ -0,0 +1,20 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +use Mix.Config + + diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/api/labels.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/api/labels.ex new file mode 100644 index 0000000000..d9765e023f --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/api/labels.ex @@ -0,0 +1,1670 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Api.Labels do + @moduledoc """ + API calls for all endpoints tagged `Labels`. + """ + + alias GoogleApi.DriveLabels.V2.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Creates a new Label. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:languageCode` (*type:* `String.t`) - The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used. + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access. + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_create(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_create(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :languageCode => :query, + :useAdminAccess => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/labels", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}] + ) + end + + @doc """ + Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may be deleted. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `:"writeControl.requiredRevisionId"` (*type:* `String.t`) - The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_delete(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_delete(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query, + :"writeControl.requiredRevisionId" => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v2/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Updates a single Label by applying a set of update requests resulting in a new draft revision. The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive Items. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the Label to update. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_delta(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_delta(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+name}:delta", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse{} + ] + ) + end + + @doc """ + Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DisableLabelRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_disable(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_disable(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+name}:disable", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}] + ) + end + + @doc """ + Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2EnableLabelRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_enable(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_enable(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+name}:enable", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}] + ) + end + + @doc """ + Get a label by its resource name. Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:languageCode` (*type:* `String.t`) - The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used. + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server verifies that the user is an admin for the label before allowing access. + * `:view` (*type:* `String.t`) - When specified, only certain fields belonging to the indicated view are returned. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_get(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_get(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :languageCode => :query, + :useAdminAccess => :query, + :view => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}] + ) + end + + @doc """ + List labels. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:customer` (*type:* `String.t`) - The customer to scope this list request to. For example: "customers/abcd1234". If unset, will return all labels within the current customer. + * `:languageCode` (*type:* `String.t`) - The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used. + * `:minimumRole` (*type:* `String.t`) - Specifies the level of access the user must have on the returned Labels. The minimum role a user must have on a label. Defaults to `READER`. + * `:pageSize` (*type:* `integer()`) - Maximum number of labels to return per page. Default: 50. Max: 200. + * `:pageToken` (*type:* `String.t`) - The token of the page to return. + * `:publishedOnly` (*type:* `boolean()`) - Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled labels are included. Returned label resource names reference the published revision (`labels/{id}/{revision_id}`). * When `false`, the current label revisions are returned, which might not be published. Returned label resource names don't reference a specific revision (`labels/{id}`). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer. + * `:view` (*type:* `String.t`) - When specified, only certain fields belonging to the indicated view are returned. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_list(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_list(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :customer => :query, + :languageCode => :query, + :minimumRole => :query, + :pageSize => :query, + :pageToken => :query, + :publishedOnly => :query, + :useAdminAccess => :query, + :view => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/labels", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse{}] + ) + end + + @doc """ + Publish all draft changes to the Label. Once published, the Label may not return to its draft state. See `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a Label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be rejected. For example, the following changes to a Label will be rejected after the Label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * Field.FieldType cannot be changed. * Changes to Field validation options cannot reject something that was previously accepted. * Reducing the max entries. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2PublishLabelRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_publish(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_publish(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+name}:publish", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}] + ) + end + + @doc """ + Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the Label to update. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_update_label_copy_mode( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_update_label_copy_mode( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+name}:updateLabelCopyMode", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label{}] + ) + end + + @doc """ + Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_update_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_update_permissions(connection, parent, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v2/{+parent}/permissions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}] + ) + end + + @doc """ + Lists the LabelLocks on a Label. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Label on which Locks are applied. Format: labels/{label} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - Maximum number of Locks to return per page. Default: 100. Max: 200. + * `:pageToken` (*type:* `String.t`) - The token of the page to return. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_locks_list(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_locks_list(connection, parent, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/{+parent}/locks", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse{}] + ) + end + + @doc """ + Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_permissions_batch_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_permissions_batch_delete( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+parent}/permissions:batchDelete", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_permissions_batch_update( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_permissions_batch_update( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+parent}/permissions:batchUpdate", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse{} + ] + ) + end + + @doc """ + Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name on the Label Permission is created. Format: labels/{label} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_permissions_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_permissions_create(connection, parent, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+parent}/permissions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}] + ) + end + + @doc """ + Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label Permission resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_permissions_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_permissions_delete(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v2/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Lists a Label's permissions. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - Maximum number of permissions to return per page. Default: 50. Max: 200. + * `:pageToken` (*type:* `String.t`) - The token of the page to return. + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_permissions_list(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_permissions_list(connection, parent, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query, + :useAdminAccess => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/{+parent}/permissions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse{} + ] + ) + end + + @doc """ + Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_update_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_update_permissions( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v2/{+parent}/permissions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}] + ) + end + + @doc """ + Lists the LabelLocks on a Label. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Label on which Locks are applied. Format: labels/{label} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - Maximum number of Locks to return per page. Default: 100. Max: 200. + * `:pageToken` (*type:* `String.t`) - The token of the page to return. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_locks_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_locks_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/{+parent}/locks", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse{}] + ) + end + + @doc """ + Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_permissions_batch_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_permissions_batch_delete( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+parent}/permissions:batchDelete", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_permissions_batch_update( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_permissions_batch_update( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+parent}/permissions:batchUpdate", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse{} + ] + ) + end + + @doc """ + Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name on the Label Permission is created. Format: labels/{label} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `:body` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_permissions_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_permissions_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/{+parent}/permissions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{}] + ) + end + + @doc """ + Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Label Permission resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_permissions_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_permissions_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :useAdminAccess => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v2/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Lists a Label's permissions. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - Maximum number of permissions to return per page. Default: 50. Max: 200. + * `:pageToken` (*type:* `String.t`) - The token of the page to return. + * `:useAdminAccess` (*type:* `boolean()`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_labels_revisions_permissions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_labels_revisions_permissions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query, + :useAdminAccess => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/{+parent}/permissions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse{} + ] + ) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/api/limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/api/limits.ex new file mode 100644 index 0000000000..fd2d4b8e1d --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/api/limits.ex @@ -0,0 +1,88 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Api.Limits do + @moduledoc """ + API calls for all endpoints tagged `Limits`. + """ + + alias GoogleApi.DriveLabels.V2.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:name` (*type:* `String.t`) - Required. Label revision resource name Must be: "limits/label" + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_limits_get_label(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_limits_get_label(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :name => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/limits/label", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits{}] + ) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/api/users.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/api/users.ex new file mode 100644 index 0000000000..eeaafb3cbf --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/api/users.ex @@ -0,0 +1,91 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Api.Users do + @moduledoc """ + API calls for all endpoints tagged `Users`. + """ + + alias GoogleApi.DriveLabels.V2.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Gets the user capabilities. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DriveLabels.V2.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the user. Only "users/me/capabilities" is supported. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:customer` (*type:* `String.t`) - The customer to scope this request to. For example: "customers/abcd1234". If unset, will return settings within the current customer. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities{}}` on success + * `{:error, info}` on failure + """ + @spec drivelabels_users_get_capabilities(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def drivelabels_users_get_capabilities(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :customer => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v2/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities{}] + ) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/connection.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/connection.ex new file mode 100644 index 0000000000..87c63f6015 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/connection.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Connection do + @moduledoc """ + Handle Tesla connections for GoogleApi.DriveLabels.V2. + """ + + @type t :: Tesla.Env.client() + + use GoogleApi.Gax.Connection, + scopes: [ + # See, edit, create, and delete all Google Drive labels in your organization, and see your organization's label-related admin policies + "https://www.googleapis.com/auth/drive.admin.labels", + + # See all Google Drive labels and label-related admin policies in your organization + "https://www.googleapis.com/auth/drive.admin.labels.readonly", + + # See, edit, create, and delete your Google Drive labels + "https://www.googleapis.com/auth/drive.labels", + + # See your Google Drive labels + "https://www.googleapis.com/auth/drive.labels.readonly" + ], + otp_app: :google_api_drive_labels, + base_url: "https://drivelabels.googleapis.com/" +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/metadata.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/metadata.ex new file mode 100644 index 0000000000..4e26d1676c --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/metadata.ex @@ -0,0 +1,26 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2 do + @moduledoc """ + API client metadata for GoogleApi.DriveLabels.V2. + """ + + @discovery_revision "20240307" + + def discovery_revision(), do: @discovery_revision +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_colors.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_colors.ex new file mode 100644 index 0000000000..ef9b8487e9 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_colors.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors do + @moduledoc """ + The color derived from BadgeConfig and changed to the closest recommended supported color. + + ## Attributes + + * `backgroundColor` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t`, *default:* `nil`) - Output only. Badge background that pairs with the foreground. + * `foregroundColor` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t`, *default:* `nil`) - Output only. Badge foreground that pairs with the background. + * `soloColor` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t`, *default:* `nil`) - Output only. Color that can be used for text without a background. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backgroundColor => GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t() | nil, + :foregroundColor => GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t() | nil, + :soloColor => GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t() | nil + } + + field(:backgroundColor, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeColor) + field(:foregroundColor, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeColor) + field(:soloColor, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeColor) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_config.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_config.ex new file mode 100644 index 0000000000..8bf215876d --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_badge_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig do + @moduledoc """ + Badge status of the label. + + ## Attributes + + * `color` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t`, *default:* `nil`) - The color of the badge. When not specified, no badge is rendered. The background, foreground, and solo (light and dark mode) colors set here are changed in the Drive UI into the closest recommended supported color. + * `priorityOverride` (*type:* `String.t`, *default:* `nil`) - Override the default global priority of this badge. When set to 0, the default priority heuristic is used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :color => GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.t() | nil, + :priorityOverride => String.t() | nil + } + + field(:color, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeColor) + field(:priorityOverride) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_delete_label_permissions_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_delete_label_permissions_request.ex new file mode 100644 index 0000000000..057aa25d69 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_delete_label_permissions_request.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest do + @moduledoc """ + Deletes one of more Label Permissions. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest.t)`, *default:* `nil`) - Required. The request message specifying the resources to update. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the DeleteLabelPermissionRequest messages must either be empty or match this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list( + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest.t() + ) + | nil, + :useAdminAccess => boolean() | nil + } + + field(:requests, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest, + type: :list + ) + + field(:useAdminAccess) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_request.ex new file mode 100644 index 0000000000..ef0fdea805 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_request.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest do + @moduledoc """ + Updates one or more Label Permissions. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest.t)`, *default:* `nil`) - Required. The request message specifying the resources to update. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the UpdateLabelPermissionRequest messages must either be empty or match this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list( + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest.t() + ) + | nil, + :useAdminAccess => boolean() | nil + } + + field(:requests, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest, + type: :list + ) + + field(:useAdminAccess) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_response.ex new file mode 100644 index 0000000000..974bc017d5 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_batch_update_label_permissions_response.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse do + @moduledoc """ + Response for updating one or more Label Permissions. + + ## Attributes + + * `permissions` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t)`, *default:* `nil`) - Required. Permissions updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :permissions => + list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t()) | nil + } + + field(:permissions, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_date_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_date_limits.ex new file mode 100644 index 0000000000..051dcc3cca --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_date_limits.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits do + @moduledoc """ + Limits for date Field type. + + ## Attributes + + * `maxValue` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t`, *default:* `nil`) - Maximum value for the date Field type. + * `minValue` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t`, *default:* `nil`) - Minimum value for the date Field type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxValue => GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t() | nil, + :minValue => GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t() | nil + } + + field(:maxValue, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeDate) + field(:minValue, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeDate) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delete_label_permission_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delete_label_permission_request.ex new file mode 100644 index 0000000000..4a61b88180 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delete_label_permission_request.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest do + @moduledoc """ + Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Label Permission resource name. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :useAdminAccess => boolean() | nil + } + + field(:name) + field(:useAdminAccess) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request.ex new file mode 100644 index 0000000000..14bff8c33b --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest do + @moduledoc """ + The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied. + + ## Attributes + + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The BCP-47 language code to use for evaluating localized Field labels when `include_label_in_response` is `true`. + * `requests` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest.t)`, *default:* `nil`) - A list of updates to apply to the Label. Requests will be applied in the order they are specified. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `view` (*type:* `String.t`, *default:* `nil`) - When specified, only certain fields belonging to the indicated view will be returned. + * `writeControl` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t`, *default:* `nil`) - Provides control over how write requests are executed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :languageCode => String.t() | nil, + :requests => + list( + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest.t() + ) + | nil, + :useAdminAccess => boolean() | nil, + :view => String.t() | nil, + :writeControl => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t() | nil + } + + field(:languageCode) + + field(:requests, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest, + type: :list + ) + + field(:useAdminAccess) + field(:view) + field(:writeControl, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_field_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_field_request.ex new file mode 100644 index 0000000000..e6220e4830 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_field_request.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest do + @moduledoc """ + Request to create a Field within a Label. + + ## Attributes + + * `field` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field.t`, *default:* `nil`) - Required. Field to create. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :field => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field.t() | nil + } + + field(:field, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_selection_choice_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_selection_choice_request.ex new file mode 100644 index 0000000000..72b0c6ce55 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_create_selection_choice_request.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest do + @moduledoc """ + Request to create a Selection Choice. + + ## Attributes + + * `choice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice.t`, *default:* `nil`) - Required. The Choice to create. + * `fieldId` (*type:* `String.t`, *default:* `nil`) - Required. The Selection Field in which a Choice will be created. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :choice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice.t() + | nil, + :fieldId => String.t() | nil + } + + field(:choice, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice + ) + + field(:fieldId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_field_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_field_request.ex new file mode 100644 index 0000000000..728c696982 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_field_request.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest do + @moduledoc """ + Request to delete the Field. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Required. ID of the Field to delete. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil + } + + field(:id) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_selection_choice_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_selection_choice_request.ex new file mode 100644 index 0000000000..fd55ea7ee4 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_delete_selection_choice_request.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest do + @moduledoc """ + Request to delete a Choice. + + ## Attributes + + * `fieldId` (*type:* `String.t`, *default:* `nil`) - Required. The Selection Field from which a Choice will be deleted. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. Choice to delete. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldId => String.t() | nil, + :id => String.t() | nil + } + + field(:fieldId) + field(:id) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_field_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_field_request.ex new file mode 100644 index 0000000000..c1c9e1501a --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_field_request.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest do + @moduledoc """ + Request to disable the Field. + + ## Attributes + + * `disabledPolicy` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t`, *default:* `nil`) - Required. Field Disabled Policy. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. Key of the Field to disable. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabledPolicy => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t() + | nil, + :id => String.t() | nil, + :updateMask => String.t() | nil + } + + field(:disabledPolicy, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy + ) + + field(:id) + field(:updateMask) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_selection_choice_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_selection_choice_request.ex new file mode 100644 index 0000000000..343a816ade --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_disable_selection_choice_request.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest do + @moduledoc """ + Request to disable a Choice. + + ## Attributes + + * `disabledPolicy` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t`, *default:* `nil`) - Required. The disabled policy to update. + * `fieldId` (*type:* `String.t`, *default:* `nil`) - Required. The Selection Field in which a Choice will be disabled. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. Choice to disable. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabledPolicy => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t() + | nil, + :fieldId => String.t() | nil, + :id => String.t() | nil, + :updateMask => String.t() | nil + } + + field(:disabledPolicy, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy + ) + + field(:fieldId) + field(:id) + field(:updateMask) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_field_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_field_request.ex new file mode 100644 index 0000000000..18b6916eeb --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_field_request.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest do + @moduledoc """ + Request to enable the Field. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Required. ID of the Field to enable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil + } + + field(:id) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_selection_choice_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_selection_choice_request.ex new file mode 100644 index 0000000000..a09963089a --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_enable_selection_choice_request.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest do + @moduledoc """ + Request to enable a Choice. + + ## Attributes + + * `fieldId` (*type:* `String.t`, *default:* `nil`) - Required. The Selection Field in which a Choice will be enabled. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. Choice to enable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldId => String.t() | nil, + :id => String.t() | nil + } + + field(:fieldId) + field(:id) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_request.ex new file mode 100644 index 0000000000..8cb3fe85e3 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_request.ex @@ -0,0 +1,155 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest do + @moduledoc """ + A single kind of update to apply to a Label. + + ## Attributes + + * `createField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest.t`, *default:* `nil`) - Creates a new Field. + * `createSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest.t`, *default:* `nil`) - Creates Choice within a Selection field. + * `deleteField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest.t`, *default:* `nil`) - Deletes a Field from the label. + * `deleteSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest.t`, *default:* `nil`) - Delete a Choice within a Selection Field. + * `disableField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest.t`, *default:* `nil`) - Disables the Field. + * `disableSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest.t`, *default:* `nil`) - Disable a Choice within a Selection Field. + * `enableField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest.t`, *default:* `nil`) - Enables the Field. + * `enableSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest.t`, *default:* `nil`) - Enable a Choice within a Selection Field. + * `updateField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest.t`, *default:* `nil`) - Updates basic properties of a Field. + * `updateFieldType` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest.t`, *default:* `nil`) - Update Field type and/or type options. + * `updateLabel` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest.t`, *default:* `nil`) - Updates the Label properties. + * `updateSelectionChoiceProperties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest.t`, *default:* `nil`) - Update a Choice properties within a Selection Field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest.t() + | nil, + :createSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest.t() + | nil, + :deleteField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest.t() + | nil, + :deleteSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest.t() + | nil, + :disableField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest.t() + | nil, + :disableSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest.t() + | nil, + :enableField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest.t() + | nil, + :enableSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest.t() + | nil, + :updateField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest.t() + | nil, + :updateFieldType => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest.t() + | nil, + :updateLabel => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest.t() + | nil, + :updateSelectionChoiceProperties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest.t() + | nil + } + + field(:createField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest + ) + + field(:createSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest + ) + + field(:deleteField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest + ) + + field(:deleteSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest + ) + + field(:disableField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest + ) + + field(:disableSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest + ) + + field(:enableField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest + ) + + field(:enableSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest + ) + + field(:updateField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest + ) + + field(:updateFieldType, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest + ) + + field(:updateLabel, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest + ) + + field(:updateSelectionChoiceProperties, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_properties_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_properties_request.ex new file mode 100644 index 0000000000..e1a19c3ac3 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_properties_request.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest do + @moduledoc """ + Request to update Field properties. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Required. The Field to update. + * `properties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties.t`, *default:* `nil`) - Required. Basic Field properties. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :properties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties.t() | nil, + :updateMask => String.t() | nil + } + + field(:id) + field(:properties, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties) + field(:updateMask) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_type_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_type_request.ex new file mode 100644 index 0000000000..ca1bd83974 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_field_type_request.ex @@ -0,0 +1,83 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest do + @moduledoc """ + Request to change the type of a Field. + + ## Attributes + + * `dateOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions.t`, *default:* `nil`) - Update field to Date. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. The Field to update. + * `integerOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions.t`, *default:* `nil`) - Update field to Integer. + * `selectionOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions.t`, *default:* `nil`) - Update field to Selection. + * `textOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions.t`, *default:* `nil`) - Update field to Text. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root of `type_options` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + * `userOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions.t`, *default:* `nil`) - Update field to User. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dateOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions.t() | nil, + :id => String.t() | nil, + :integerOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions.t() | nil, + :selectionOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions.t() | nil, + :textOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions.t() | nil, + :updateMask => String.t() | nil, + :userOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions.t() | nil + } + + field(:dateOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions) + field(:id) + + field(:integerOptions, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions + ) + + field(:selectionOptions, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions + ) + + field(:textOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions) + field(:updateMask) + field(:userOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_label_properties_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_label_properties_request.ex new file mode 100644 index 0000000000..bb94837cd0 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_label_properties_request.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest do + @moduledoc """ + Updates basic properties of a Label. + + ## Attributes + + * `properties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties.t`, *default:* `nil`) - Required. Label properties to update. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `label_properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :properties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties.t() | nil, + :updateMask => String.t() | nil + } + + field(:properties, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties) + field(:updateMask) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_selection_choice_properties_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_selection_choice_properties_request.ex new file mode 100644 index 0000000000..8485d3d1d7 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_request_update_selection_choice_properties_request.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest do + @moduledoc """ + Request to update a Choice properties. + + ## Attributes + + * `fieldId` (*type:* `String.t`, *default:* `nil`) - Required. The Selection Field to update. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. The Choice to update. + * `properties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties.t`, *default:* `nil`) - Required. The Choice properties to update. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldId => String.t() | nil, + :id => String.t() | nil, + :properties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties.t() + | nil, + :updateMask => String.t() | nil + } + + field(:fieldId) + field(:id) + + field(:properties, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties + ) + + field(:updateMask) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response.ex new file mode 100644 index 0000000000..0772001d73 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse do + @moduledoc """ + Response for Label update. + + ## Attributes + + * `responses` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse.t)`, *default:* `nil`) - The reply of the updates. This maps 1:1 with the updates, although responses to some requests may be empty. + * `updatedLabel` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t`, *default:* `nil`) - The label after updates were applied. This is only set if [BatchUpdateLabelResponse2.include_label_in_response] is `true` and there were no errors. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :responses => + list( + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse.t() + ) + | nil, + :updatedLabel => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t() | nil + } + + field(:responses, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse, + type: :list + ) + + field(:updatedLabel, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_field_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_field_response.ex new file mode 100644 index 0000000000..870ab061c2 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_field_response.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse do + @moduledoc """ + Response following Field create. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The field of the created field. When left blank in a create request, a key will be autogenerated and can be identified here. + * `priority` (*type:* `integer()`, *default:* `nil`) - The priority of the created field. The priority may change from what was specified to assure contiguous priorities between fields (1-n). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :priority => integer() | nil + } + + field(:id) + field(:priority) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_selection_choice_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_selection_choice_response.ex new file mode 100644 index 0000000000..a97a269ef4 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_create_selection_choice_response.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse do + @moduledoc """ + Response following Selection Choice create. + + ## Attributes + + * `fieldId` (*type:* `String.t`, *default:* `nil`) - The server-generated id of the field. + * `id` (*type:* `String.t`, *default:* `nil`) - The server-generated ID of the created choice within the Field + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldId => String.t() | nil, + :id => String.t() | nil + } + + field(:fieldId) + field(:id) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_field_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_field_response.ex new file mode 100644 index 0000000000..76f8c13547 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_field_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse do + @moduledoc """ + Response following Field delete. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_selection_choice_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_selection_choice_response.ex new file mode 100644 index 0000000000..1d65c35e06 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_delete_selection_choice_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse do + @moduledoc """ + Response following Choice delete. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_field_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_field_response.ex new file mode 100644 index 0000000000..3eb6584d07 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_field_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse do + @moduledoc """ + Response following Field disable. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_selection_choice_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_selection_choice_response.ex new file mode 100644 index 0000000000..614eb5f406 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_disable_selection_choice_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse do + @moduledoc """ + Response following Choice disable. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_field_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_field_response.ex new file mode 100644 index 0000000000..0a2ce69940 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_field_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse do + @moduledoc """ + Response following Field enable. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_selection_choice_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_selection_choice_response.ex new file mode 100644 index 0000000000..af2fa3a39e --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_enable_selection_choice_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse do + @moduledoc """ + Response following Choice enable. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_response.ex new file mode 100644 index 0000000000..2da75df034 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_response.ex @@ -0,0 +1,155 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse do + @moduledoc """ + A single response from an update. + + ## Attributes + + * `createField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse.t`, *default:* `nil`) - Creates a new Field. + * `createSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse.t`, *default:* `nil`) - Creates a new selection list option to add to a Selection Field. + * `deleteField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse.t`, *default:* `nil`) - Deletes a Field from the label. + * `deleteSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse.t`, *default:* `nil`) - Deletes a Choice from a Selection Field. + * `disableField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse.t`, *default:* `nil`) - Disables Field. + * `disableSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse.t`, *default:* `nil`) - Disables a Choice within a Selection Field. + * `enableField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse.t`, *default:* `nil`) - Enables Field. + * `enableSelectionChoice` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse.t`, *default:* `nil`) - Enables a Choice within a Selection Field. + * `updateField` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse.t`, *default:* `nil`) - Updates basic properties of a Field. + * `updateFieldType` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse.t`, *default:* `nil`) - Update Field type and/or type options. + * `updateLabel` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse.t`, *default:* `nil`) - Updated basic properties of a Label. + * `updateSelectionChoiceProperties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse.t`, *default:* `nil`) - Updates a Choice within a Selection Field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse.t() + | nil, + :createSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse.t() + | nil, + :deleteField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse.t() + | nil, + :deleteSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse.t() + | nil, + :disableField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse.t() + | nil, + :disableSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse.t() + | nil, + :enableField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse.t() + | nil, + :enableSelectionChoice => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse.t() + | nil, + :updateField => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse.t() + | nil, + :updateFieldType => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse.t() + | nil, + :updateLabel => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse.t() + | nil, + :updateSelectionChoiceProperties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse.t() + | nil + } + + field(:createField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse + ) + + field(:createSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse + ) + + field(:deleteField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse + ) + + field(:deleteSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse + ) + + field(:disableField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse + ) + + field(:disableSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse + ) + + field(:enableField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse + ) + + field(:enableSelectionChoice, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse + ) + + field(:updateField, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse + ) + + field(:updateFieldType, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse + ) + + field(:updateLabel, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse + ) + + field(:updateSelectionChoiceProperties, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_properties_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_properties_response.ex new file mode 100644 index 0000000000..70c17ae587 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_properties_response.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse do + @moduledoc """ + Response following update to Field properties. + + ## Attributes + + * `priority` (*type:* `integer()`, *default:* `nil`) - The priority of the updated field. The priority may change from what was specified to assure contiguous priorities between fields (1-n). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :priority => integer() | nil + } + + field(:priority) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_type_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_type_response.ex new file mode 100644 index 0000000000..9641fe69e7 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_field_type_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse do + @moduledoc """ + Response following update to Field type. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_label_properties_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_label_properties_response.ex new file mode 100644 index 0000000000..730ee1d4e4 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_label_properties_response.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse do + @moduledoc """ + Response following update to Label properties. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_selection_choice_properties_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_selection_choice_properties_response.ex new file mode 100644 index 0000000000..af989be5d5 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_delta_update_label_response_update_selection_choice_properties_response.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse do + @moduledoc """ + Response following update to Selection Choice properties. + + ## Attributes + + * `priority` (*type:* `integer()`, *default:* `nil`) - The priority of the updated choice. The priority may change from what was specified to assure contiguous priorities between choices (1-n). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :priority => integer() | nil + } + + field(:priority) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_disable_label_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_disable_label_request.ex new file mode 100644 index 0000000000..cd5a7d6aa9 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_disable_label_request.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DisableLabelRequest do + @moduledoc """ + Request to deprecate a published Label. + + ## Attributes + + * `disabledPolicy` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t`, *default:* `nil`) - Disabled policy to use. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `writeControl` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t`, *default:* `nil`) - Provides control over how write requests are executed. Defaults to unset, which means last write wins. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabledPolicy => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t() + | nil, + :languageCode => String.t() | nil, + :updateMask => String.t() | nil, + :useAdminAccess => boolean() | nil, + :writeControl => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t() | nil + } + + field(:disabledPolicy, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy + ) + + field(:languageCode) + field(:updateMask) + field(:useAdminAccess) + field(:writeControl, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DisableLabelRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DisableLabelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DisableLabelRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_enable_label_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_enable_label_request.ex new file mode 100644 index 0000000000..8c942d65aa --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_enable_label_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2EnableLabelRequest do + @moduledoc """ + Request to enable a label. + + ## Attributes + + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `writeControl` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t`, *default:* `nil`) - Provides control over how write requests are executed. Defaults to unset, which means last write wins. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :languageCode => String.t() | nil, + :useAdminAccess => boolean() | nil, + :writeControl => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t() | nil + } + + field(:languageCode) + field(:useAdminAccess) + field(:writeControl, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2EnableLabelRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2EnableLabelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2EnableLabelRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field.ex new file mode 100644 index 0000000000..9d4a59b79c --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field.ex @@ -0,0 +1,131 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field do + @moduledoc """ + Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item. + + ## Attributes + + * `appliedCapabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities.t`, *default:* `nil`) - Output only. The capabilities this user has on this field and its value when the label is applied on Drive items. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this field was created. + * `creator` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who created this field. + * `dateOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions.t`, *default:* `nil`) - Date field options. + * `disableTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this field was disabled. This value has no meaning when the field is not disabled. + * `disabler` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who disabled this field. This value has no meaning when the field is not disabled. + * `displayHints` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints.t`, *default:* `nil`) - Output only. UI display hints for rendering a field. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+` + * `integerOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions.t`, *default:* `nil`) - Integer field options. + * `lifecycle` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.t`, *default:* `nil`) - Output only. The lifecycle of this field. + * `lockStatus` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.t`, *default:* `nil`) - Output only. The LockStatus of this field. + * `properties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties.t`, *default:* `nil`) - The basic properties of the field. + * `publisher` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who published this field. This value has no meaning when the field is not published. + * `queryKey` (*type:* `String.t`, *default:* `nil`) - Output only. The key to use when constructing Drive search queries to find files based on values defined for this field on files. For example, "`{query_key}` > 2001-01-01". + * `schemaCapabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities.t`, *default:* `nil`) - Output only. The capabilities this user has when editing this field. + * `selectionOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions.t`, *default:* `nil`) - Selection field options. + * `textOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions.t`, *default:* `nil`) - Text field options. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this field was updated. + * `updater` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who modified this field. + * `userOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions.t`, *default:* `nil`) - User field options. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appliedCapabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities.t() + | nil, + :createTime => DateTime.t() | nil, + :creator => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :dateOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions.t() | nil, + :disableTime => DateTime.t() | nil, + :disabler => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :displayHints => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints.t() | nil, + :id => String.t() | nil, + :integerOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions.t() | nil, + :lifecycle => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.t() | nil, + :lockStatus => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.t() | nil, + :properties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties.t() | nil, + :publisher => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :queryKey => String.t() | nil, + :schemaCapabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities.t() + | nil, + :selectionOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions.t() | nil, + :textOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions.t() | nil, + :updateTime => DateTime.t() | nil, + :updater => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :userOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions.t() | nil + } + + field(:appliedCapabilities, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities + ) + + field(:createTime, as: DateTime) + field(:creator, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:dateOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions) + field(:disableTime, as: DateTime) + field(:disabler, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + + field(:displayHints, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints) + + field(:id) + + field(:integerOptions, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions + ) + + field(:lifecycle, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle) + field(:lockStatus, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus) + field(:properties, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties) + field(:publisher, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:queryKey) + + field(:schemaCapabilities, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities + ) + + field(:selectionOptions, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions + ) + + field(:textOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions) + field(:updateTime, as: DateTime) + field(:updater, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:userOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_applied_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_applied_capabilities.ex new file mode 100644 index 0000000000..d19105b00d --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_applied_capabilities.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities do + @moduledoc """ + The capabilities related to this field on applied metadata. + + ## Attributes + + * `canRead` (*type:* `boolean()`, *default:* `nil`) - Whether the user can read related applied metadata on items. + * `canSearch` (*type:* `boolean()`, *default:* `nil`) - Whether the user can search for Drive items referencing this field. + * `canWrite` (*type:* `boolean()`, *default:* `nil`) - Whether the user can set this field on Drive items. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canRead => boolean() | nil, + :canSearch => boolean() | nil, + :canWrite => boolean() | nil + } + + field(:canRead) + field(:canSearch) + field(:canWrite) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldAppliedCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_date_options.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_date_options.ex new file mode 100644 index 0000000000..157afdbbbc --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_date_options.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions do + @moduledoc """ + Options for the date field type. + + ## Attributes + + * `dateFormat` (*type:* `String.t`, *default:* `nil`) - Output only. ICU date format. + * `dateFormatType` (*type:* `String.t`, *default:* `nil`) - Localized date formatting option. Field values are rendered in this format according to their locale. + * `maxValue` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t`, *default:* `nil`) - Output only. Maximum valid value (year, month, day). + * `minValue` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t`, *default:* `nil`) - Output only. Minimum valid value (year, month, day). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dateFormat => String.t() | nil, + :dateFormatType => String.t() | nil, + :maxValue => GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t() | nil, + :minValue => GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.t() | nil + } + + field(:dateFormat) + field(:dateFormatType) + field(:maxValue, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeDate) + field(:minValue, as: GoogleApi.DriveLabels.V2.Model.GoogleTypeDate) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDateOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_display_hints.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_display_hints.ex new file mode 100644 index 0000000000..46f2f8be41 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_display_hints.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints do + @moduledoc """ + UI display hints for rendering a field. + + ## Attributes + + * `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the field should be shown in the UI as disabled. + * `hiddenInSearch` (*type:* `boolean()`, *default:* `nil`) - This field should be hidden in the search menu when searching for Drive items. + * `required` (*type:* `boolean()`, *default:* `nil`) - Whether the field should be shown as required in the UI. + * `shownInApply` (*type:* `boolean()`, *default:* `nil`) - This field should be shown in the apply menu when applying values to a Drive item. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabled => boolean() | nil, + :hiddenInSearch => boolean() | nil, + :required => boolean() | nil, + :shownInApply => boolean() | nil + } + + field(:disabled) + field(:hiddenInSearch) + field(:required) + field(:shownInApply) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldDisplayHints do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_integer_options.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_integer_options.ex new file mode 100644 index 0000000000..e8a679b2d4 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_integer_options.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions do + @moduledoc """ + Options for the Integer field type. + + ## Attributes + + * `maxValue` (*type:* `String.t`, *default:* `nil`) - Output only. The maximum valid value for the integer field. + * `minValue` (*type:* `String.t`, *default:* `nil`) - Output only. The minimum valid value for the integer field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxValue => String.t() | nil, + :minValue => String.t() | nil + } + + field(:maxValue) + field(:minValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldIntegerOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_limits.ex new file mode 100644 index 0000000000..4fcd33fa1c --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_limits.ex @@ -0,0 +1,80 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits do + @moduledoc """ + Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc. + + ## Attributes + + * `dateLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits.t`, *default:* `nil`) - Date Field limits. + * `integerLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits.t`, *default:* `nil`) - Integer Field limits. + * `longTextLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits.t`, *default:* `nil`) - Long text Field limits. + * `maxDescriptionLength` (*type:* `integer()`, *default:* `nil`) - Limits for Field description, also called help text. + * `maxDisplayNameLength` (*type:* `integer()`, *default:* `nil`) - Limits for Field title. + * `maxIdLength` (*type:* `integer()`, *default:* `nil`) - Max length for the id. + * `selectionLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits.t`, *default:* `nil`) - Selection Field limits. + * `textLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits.t`, *default:* `nil`) - The relevant limits for the specified Field.Type. Text Field limits. + * `userLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits.t`, *default:* `nil`) - User Field limits. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dateLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits.t() | nil, + :integerLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits.t() | nil, + :longTextLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits.t() | nil, + :maxDescriptionLength => integer() | nil, + :maxDisplayNameLength => integer() | nil, + :maxIdLength => integer() | nil, + :selectionLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits.t() | nil, + :textLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits.t() | nil, + :userLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits.t() | nil + } + + field(:dateLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2DateLimits) + field(:integerLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits) + field(:longTextLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits) + field(:maxDescriptionLength) + field(:maxDisplayNameLength) + field(:maxIdLength) + + field(:selectionLimits, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits + ) + + field(:textLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits) + field(:userLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_list_options.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_list_options.ex new file mode 100644 index 0000000000..3f98cab32a --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_list_options.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions do + @moduledoc """ + Options for a multi-valued variant of an associated field type. + + ## Attributes + + * `maxEntries` (*type:* `integer()`, *default:* `nil`) - Maximum number of entries permitted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxEntries => integer() | nil + } + + field(:maxEntries) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_properties.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_properties.ex new file mode 100644 index 0000000000..d7a6f32f3d --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_properties.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties do + @moduledoc """ + The basic properties of the field. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display text to show in the UI identifying this field. + * `insertBeforeField` (*type:* `String.t`, *default:* `nil`) - Input only. Insert or move this field before the indicated field. If empty, the field is placed at the end of the list. + * `required` (*type:* `boolean()`, *default:* `nil`) - Whether the field should be marked as required. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :insertBeforeField => String.t() | nil, + :required => boolean() | nil + } + + field(:displayName) + field(:insertBeforeField) + field(:required) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_schema_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_schema_capabilities.ex new file mode 100644 index 0000000000..6a663fc3a1 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_schema_capabilities.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities do + @moduledoc """ + The capabilities related to this field when editing the field. + + ## Attributes + + * `canDelete` (*type:* `boolean()`, *default:* `nil`) - Whether the user can delete this field. The user must have permission and the field must be deprecated. + * `canDisable` (*type:* `boolean()`, *default:* `nil`) - Whether the user can disable this field. The user must have permission and this field must not already be disabled. + * `canEnable` (*type:* `boolean()`, *default:* `nil`) - Whether the user can enable this field. The user must have permission and this field must be disabled. + * `canUpdate` (*type:* `boolean()`, *default:* `nil`) - Whether the user can change this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canDelete => boolean() | nil, + :canDisable => boolean() | nil, + :canEnable => boolean() | nil, + :canUpdate => boolean() | nil + } + + field(:canDelete) + field(:canDisable) + field(:canEnable) + field(:canUpdate) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSchemaCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options.ex new file mode 100644 index 0000000000..b8277ec301 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions do + @moduledoc """ + Options for the selection field type. + + ## Attributes + + * `choices` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice.t)`, *default:* `nil`) - The options available for this selection field. The list order is consistent, and modified with `insert_before_choice`. + * `listOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions.t`, *default:* `nil`) - When specified, indicates this field supports a list of values. Once the field is published, this cannot be changed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :choices => + list( + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice.t() + ) + | nil, + :listOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions.t() | nil + } + + field(:choices, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice, + type: :list + ) + + field(:listOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice.ex new file mode 100644 index 0000000000..55d66236d3 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice.ex @@ -0,0 +1,121 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice do + @moduledoc """ + Selection field choice. + + ## Attributes + + * `appliedCapabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities.t`, *default:* `nil`) - Output only. The capabilities related to this choice on applied metadata. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this choice was created. + * `creator` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who created this choice. + * `disableTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this choice was disabled. This value has no meaning when the choice is not disabled. + * `disabler` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who disabled this choice. This value has no meaning when the option is not disabled. + * `displayHints` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints.t`, *default:* `nil`) - Output only. UI display hints for rendering a choice. + * `id` (*type:* `String.t`, *default:* `nil`) - The unique value of the choice. This ID is autogenerated. Matches the regex: `([a-zA-Z0-9_])+`. + * `lifecycle` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.t`, *default:* `nil`) - Output only. Lifecycle of the choice. + * `lockStatus` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.t`, *default:* `nil`) - Output only. The LockStatus of this choice. + * `properties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties.t`, *default:* `nil`) - Basic properties of the choice. + * `publishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this choice was published. This value has no meaning when the choice is not published. + * `publisher` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who published this choice. This value has no meaning when the choice is not published. + * `schemaCapabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities.t`, *default:* `nil`) - Output only. The capabilities related to this option when editing the option. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this choice was updated last. + * `updater` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who updated this choice last. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appliedCapabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities.t() + | nil, + :createTime => DateTime.t() | nil, + :creator => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :disableTime => DateTime.t() | nil, + :disabler => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :displayHints => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints.t() + | nil, + :id => String.t() | nil, + :lifecycle => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.t() | nil, + :lockStatus => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.t() | nil, + :properties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties.t() + | nil, + :publishTime => DateTime.t() | nil, + :publisher => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :schemaCapabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities.t() + | nil, + :updateTime => DateTime.t() | nil, + :updater => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil + } + + field(:appliedCapabilities, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities + ) + + field(:createTime, as: DateTime) + field(:creator, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:disableTime, as: DateTime) + field(:disabler, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + + field(:displayHints, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints + ) + + field(:id) + field(:lifecycle, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle) + field(:lockStatus, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus) + + field(:properties, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties + ) + + field(:publishTime, as: DateTime) + field(:publisher, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + + field(:schemaCapabilities, + as: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities + ) + + field(:updateTime, as: DateTime) + field(:updater, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_applied_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_applied_capabilities.ex new file mode 100644 index 0000000000..e1d6bc41e1 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_applied_capabilities.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities do + @moduledoc """ + The capabilities related to this choice on applied metadata. + + ## Attributes + + * `canRead` (*type:* `boolean()`, *default:* `nil`) - Whether the user can read related applied metadata on items. + * `canSearch` (*type:* `boolean()`, *default:* `nil`) - Whether the user can use this choice in search queries. + * `canSelect` (*type:* `boolean()`, *default:* `nil`) - Whether the user can select this choice on an item. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canRead => boolean() | nil, + :canSearch => boolean() | nil, + :canSelect => boolean() | nil + } + + field(:canRead) + field(:canSearch) + field(:canSelect) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_display_hints.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_display_hints.ex new file mode 100644 index 0000000000..b530708ca6 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_display_hints.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints do + @moduledoc """ + UI display hints for rendering an option. + + ## Attributes + + * `badgeColors` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t`, *default:* `nil`) - The colors to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`. + * `badgePriority` (*type:* `String.t`, *default:* `nil`) - The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this will be 0. Otherwise, this will be set to `BadgeConfig.priority_override` or the default heuristic which prefers creation date of the label, and field and option priority. + * `darkBadgeColors` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t`, *default:* `nil`) - The dark-mode color to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`. + * `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the option should be shown in the UI as disabled. + * `hiddenInSearch` (*type:* `boolean()`, *default:* `nil`) - This option should be hidden in the search menu when searching for Drive items. + * `shownInApply` (*type:* `boolean()`, *default:* `nil`) - This option should be shown in the apply menu when applying values to a Drive item. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :badgeColors => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t() | nil, + :badgePriority => String.t() | nil, + :darkBadgeColors => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t() | nil, + :disabled => boolean() | nil, + :hiddenInSearch => boolean() | nil, + :shownInApply => boolean() | nil + } + + field(:badgeColors, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors) + field(:badgePriority) + field(:darkBadgeColors, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors) + field(:disabled) + field(:hiddenInSearch) + field(:shownInApply) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_properties.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_properties.ex new file mode 100644 index 0000000000..3bf1a4fdc8 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_properties.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties do + @moduledoc """ + Basic properties of the choice. + + ## Attributes + + * `badgeConfig` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig.t`, *default:* `nil`) - The badge configuration for this choice. When set, the label that owns this choice is considered a "badged label". + * `description` (*type:* `String.t`, *default:* `nil`) - The description of this label. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display text to show in the UI identifying this field. + * `insertBeforeChoice` (*type:* `String.t`, *default:* `nil`) - Input only. Insert or move this choice before the indicated choice. If empty, the choice is placed at the end of the list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :badgeConfig => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :insertBeforeChoice => String.t() | nil + } + + field(:badgeConfig, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeConfig) + field(:description) + field(:displayName) + field(:insertBeforeChoice) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_schema_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_schema_capabilities.ex new file mode 100644 index 0000000000..6c9a373d91 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_selection_options_choice_schema_capabilities.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities do + @moduledoc """ + The capabilities related to this choice when editing the choice. + + ## Attributes + + * `canDelete` (*type:* `boolean()`, *default:* `nil`) - Whether the user can delete this choice. + * `canDisable` (*type:* `boolean()`, *default:* `nil`) - Whether the user can disable this choice. + * `canEnable` (*type:* `boolean()`, *default:* `nil`) - Whether the user can enable this choice. + * `canUpdate` (*type:* `boolean()`, *default:* `nil`) - Whether the user can update this choice. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canDelete => boolean() | nil, + :canDisable => boolean() | nil, + :canEnable => boolean() | nil, + :canUpdate => boolean() | nil + } + + field(:canDelete) + field(:canDisable) + field(:canEnable) + field(:canUpdate) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_text_options.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_text_options.ex new file mode 100644 index 0000000000..6d733a9c8c --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_text_options.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions do + @moduledoc """ + Options for the Text field type. + + ## Attributes + + * `maxLength` (*type:* `integer()`, *default:* `nil`) - Output only. The maximum valid length of values for the text field. + * `minLength` (*type:* `integer()`, *default:* `nil`) - Output only. The minimum valid length of values for the text field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxLength => integer() | nil, + :minLength => integer() | nil + } + + field(:maxLength) + field(:minLength) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldTextOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_user_options.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_user_options.ex new file mode 100644 index 0000000000..cf2b06b397 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_field_user_options.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions do + @moduledoc """ + Options for the user field type. + + ## Attributes + + * `listOptions` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions.t`, *default:* `nil`) - When specified, indicates that this field supports a list of values. Once the field is published, this cannot be changed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :listOptions => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions.t() | nil + } + + field(:listOptions, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldListOptions) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldUserOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_integer_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_integer_limits.ex new file mode 100644 index 0000000000..38b1f99fab --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_integer_limits.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits do + @moduledoc """ + Limits for integer Field type. + + ## Attributes + + * `maxValue` (*type:* `String.t`, *default:* `nil`) - Maximum value for an integer Field type. + * `minValue` (*type:* `String.t`, *default:* `nil`) - Minimum value for an integer Field type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxValue => String.t() | nil, + :minValue => String.t() | nil + } + + field(:maxValue) + field(:minValue) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2IntegerLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label.ex new file mode 100644 index 0000000000..adf3e5b8fa --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label.ex @@ -0,0 +1,130 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label do + @moduledoc """ + A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items. + + ## Attributes + + * `appliedCapabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities.t`, *default:* `nil`) - Output only. The capabilities related to this label on applied metadata. + * `appliedLabelPolicy` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy.t`, *default:* `nil`) - Output only. Behavior of this label when it's applied to Drive items. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this label was created. + * `creator` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who created this label. + * `customer` (*type:* `String.t`, *default:* `nil`) - Output only. The customer this label belongs to. For example: "customers/123abc789." + * `disableTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this label was disabled. This value has no meaning when the label is not disabled. + * `disabler` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who disabled this label. This value has no meaning when the label is not disabled. + * `displayHints` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints.t`, *default:* `nil`) - Output only. UI display hints for rendering the label. + * `fields` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field.t)`, *default:* `nil`) - List of fields in descending priority order. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+` + * `labelType` (*type:* `String.t`, *default:* `nil`) - Required. The type of label. + * `learnMoreUri` (*type:* `String.t`, *default:* `nil`) - Custom URL to present to users to allow them to learn more about this label and how it should be used. + * `lifecycle` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.t`, *default:* `nil`) - Output only. The lifecycle state of the label including whether it's published, deprecated, and has draft changes. + * `lockStatus` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.t`, *default:* `nil`) - Output only. The LockStatus of this label. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the label. Will be in the form of either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See `id` and `revision_id` below. + * `properties` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties.t`, *default:* `nil`) - Required. The basic properties of the label. + * `publishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this label was published. This value has no meaning when the label is not published. + * `publisher` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who published this label. This value has no meaning when the label is not published. + * `revisionCreateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this label revision was created. + * `revisionCreator` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user who created this label revision. + * `revisionId` (*type:* `String.t`, *default:* `nil`) - Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])+` + * `schemaCapabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities.t`, *default:* `nil`) - Output only. The capabilities the user has on this label. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appliedCapabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities.t() + | nil, + :appliedLabelPolicy => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy.t() + | nil, + :createTime => DateTime.t() | nil, + :creator => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :customer => String.t() | nil, + :disableTime => DateTime.t() | nil, + :disabler => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :displayHints => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints.t() | nil, + :fields => list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field.t()) | nil, + :id => String.t() | nil, + :labelType => String.t() | nil, + :learnMoreUri => String.t() | nil, + :lifecycle => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.t() | nil, + :lockStatus => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.t() | nil, + :name => String.t() | nil, + :properties => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties.t() | nil, + :publishTime => DateTime.t() | nil, + :publisher => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :revisionCreateTime => DateTime.t() | nil, + :revisionCreator => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :revisionId => String.t() | nil, + :schemaCapabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities.t() + | nil + } + + field(:appliedCapabilities, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities + ) + + field(:appliedLabelPolicy, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy + ) + + field(:createTime, as: DateTime) + field(:creator, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:customer) + field(:disableTime, as: DateTime) + field(:disabler, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + + field(:displayHints, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints) + + field(:fields, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Field, type: :list) + field(:id) + field(:labelType) + field(:learnMoreUri) + field(:lifecycle, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle) + field(:lockStatus, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus) + field(:name) + field(:properties, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties) + field(:publishTime, as: DateTime) + field(:publisher, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:revisionCreateTime, as: DateTime) + field(:revisionCreator, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:revisionId) + + field(:schemaCapabilities, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_capabilities.ex new file mode 100644 index 0000000000..4f10a9c8d0 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_capabilities.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities do + @moduledoc """ + The capabilities a user has on this label's applied metadata. + + ## Attributes + + * `canApply` (*type:* `boolean()`, *default:* `nil`) - Whether the user can apply this label to items. + * `canRead` (*type:* `boolean()`, *default:* `nil`) - Whether the user can read applied metadata related to this label. + * `canRemove` (*type:* `boolean()`, *default:* `nil`) - Whether the user can remove this label from items. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canApply => boolean() | nil, + :canRead => boolean() | nil, + :canRemove => boolean() | nil + } + + field(:canApply) + field(:canRead) + field(:canRemove) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_label_policy.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_label_policy.ex new file mode 100644 index 0000000000..e44ff6ba68 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_applied_label_policy.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy do + @moduledoc """ + Behavior of this label when it's applied to Drive items. + + ## Attributes + + * `copyMode` (*type:* `String.t`, *default:* `nil`) - Indicates how the applied label and field values should be copied when a Drive item is copied. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :copyMode => String.t() | nil + } + + field(:copyMode) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_display_hints.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_display_hints.ex new file mode 100644 index 0000000000..8e8ec9e625 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_display_hints.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints do + @moduledoc """ + UI display hints for rendering the label. + + ## Attributes + + * `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the label should be shown in the UI as disabled. + * `hiddenInSearch` (*type:* `boolean()`, *default:* `nil`) - This label should be hidden in the search menu when searching for Drive items. + * `priority` (*type:* `String.t`, *default:* `nil`) - Order to display label in a list. + * `shownInApply` (*type:* `boolean()`, *default:* `nil`) - This label should be shown in the apply menu when applying values to a Drive item. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabled => boolean() | nil, + :hiddenInSearch => boolean() | nil, + :priority => String.t() | nil, + :shownInApply => boolean() | nil + } + + field(:disabled) + field(:hiddenInSearch) + field(:priority) + field(:shownInApply) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelDisplayHints do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_limits.ex new file mode 100644 index 0000000000..e28ac29e6e --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_limits.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits do + @moduledoc """ + Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title. + + ## Attributes + + * `fieldLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits.t`, *default:* `nil`) - The limits for Fields. + * `maxDeletedFields` (*type:* `integer()`, *default:* `nil`) - The maximum number of published Fields that can be deleted. + * `maxDescriptionLength` (*type:* `integer()`, *default:* `nil`) - The maximum number of characters allowed for the description. + * `maxDraftRevisions` (*type:* `integer()`, *default:* `nil`) - The maximum number of draft revisions that will be kept before deleting old drafts. + * `maxFields` (*type:* `integer()`, *default:* `nil`) - The maximum number of Fields allowed within the label. + * `maxTitleLength` (*type:* `integer()`, *default:* `nil`) - The maximum number of characters allowed for the title. + * `name` (*type:* `String.t`, *default:* `nil`) - Resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits.t() | nil, + :maxDeletedFields => integer() | nil, + :maxDescriptionLength => integer() | nil, + :maxDraftRevisions => integer() | nil, + :maxFields => integer() | nil, + :maxTitleLength => integer() | nil, + :name => String.t() | nil + } + + field(:fieldLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldLimits) + field(:maxDeletedFields) + field(:maxDescriptionLength) + field(:maxDraftRevisions) + field(:maxFields) + field(:maxTitleLength) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock.ex new file mode 100644 index 0000000000..332c069bae --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock do + @moduledoc """ + A Lock that can be applied to a Label, Field, or Choice. + + ## Attributes + + * `capabilities` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities.t`, *default:* `nil`) - Output only. The user's capabilities on this LabelLock. + * `choiceId` (*type:* `String.t`, *default:* `nil`) - The ID of the Selection Field Choice that should be locked. If present, `field_id` must also be present. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this LabelLock was created. + * `creator` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t`, *default:* `nil`) - Output only. The user whose credentials were used to create the LabelLock. This will not be present if no user was responsible for creating the LabelLock. + * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. A timestamp indicating when this LabelLock was scheduled for deletion. This will be present only if this LabelLock is in the DELETING state. + * `fieldId` (*type:* `String.t`, *default:* `nil`) - The ID of the Field that should be locked. Empty if the whole Label should be locked. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of this LabelLock. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. This LabelLock's state. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :capabilities => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities.t() | nil, + :choiceId => String.t() | nil, + :createTime => DateTime.t() | nil, + :creator => GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.t() | nil, + :deleteTime => DateTime.t() | nil, + :fieldId => String.t() | nil, + :name => String.t() | nil, + :state => String.t() | nil + } + + field(:capabilities, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities + ) + + field(:choiceId) + field(:createTime, as: DateTime) + field(:creator, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo) + field(:deleteTime, as: DateTime) + field(:fieldId) + field(:name) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock_capabilities.ex new file mode 100644 index 0000000000..3619666ff2 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_lock_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities do + @moduledoc """ + A description of a user's capabilities on a LabelLock. + + ## Attributes + + * `canViewPolicy` (*type:* `boolean()`, *default:* `nil`) - True if the user is authorized to view the policy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canViewPolicy => boolean() | nil + } + + field(:canViewPolicy) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLockCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_permission.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_permission.ex new file mode 100644 index 0000000000..65fbd07316 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_permission.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission do + @moduledoc """ + The permission that applies to a principal (user, group, audience) on a label. + + ## Attributes + + * `audience` (*type:* `String.t`, *default:* `nil`) - Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label. + * `email` (*type:* `String.t`, *default:* `nil`) - Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified. + * `group` (*type:* `String.t`, *default:* `nil`) - Group resource name. + * `name` (*type:* `String.t`, *default:* `nil`) - Resource name of this permission. + * `person` (*type:* `String.t`, *default:* `nil`) - Person resource name. + * `role` (*type:* `String.t`, *default:* `nil`) - The role the principal should have. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audience => String.t() | nil, + :email => String.t() | nil, + :group => String.t() | nil, + :name => String.t() | nil, + :person => String.t() | nil, + :role => String.t() | nil + } + + field(:audience) + field(:email) + field(:group) + field(:name) + field(:person) + field(:role) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_properties.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_properties.ex new file mode 100644 index 0000000000..b533414ce6 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_properties.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties do + @moduledoc """ + Basic properties of the label. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - The description of the label. + * `title` (*type:* `String.t`, *default:* `nil`) - Required. Title of the label. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :title => String.t() | nil + } + + field(:description) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_schema_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_schema_capabilities.ex new file mode 100644 index 0000000000..9eaa6a0e53 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_label_schema_capabilities.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities do + @moduledoc """ + The capabilities related to this label when editing the label. + + ## Attributes + + * `canDelete` (*type:* `boolean()`, *default:* `nil`) - Whether the user can delete this label. The user must have permission and the label must be disabled. + * `canDisable` (*type:* `boolean()`, *default:* `nil`) - Whether the user can disable this label. The user must have permission and this label must not already be disabled. + * `canEnable` (*type:* `boolean()`, *default:* `nil`) - Whether the user can enable this label. The user must have permission and this label must be disabled. + * `canUpdate` (*type:* `boolean()`, *default:* `nil`) - Whether the user can change this label. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canDelete => boolean() | nil, + :canDisable => boolean() | nil, + :canEnable => boolean() | nil, + :canUpdate => boolean() | nil + } + + field(:canDelete) + field(:canDisable) + field(:canEnable) + field(:canUpdate) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelSchemaCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle.ex new file mode 100644 index 0000000000..b5994268ed --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle do + @moduledoc """ + The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics: * Published—Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled—When disabled, the configured `DisabledPolicy` takes effect. + + ## Attributes + + * `disabledPolicy` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t`, *default:* `nil`) - The policy that governs how to show a disabled label, field, or selection choice. + * `hasUnpublishedChanges` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the object associated with this lifecycle has unpublished changes. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the object associated with this lifecycle. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabledPolicy => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.t() + | nil, + :hasUnpublishedChanges => boolean() | nil, + :state => String.t() | nil + } + + field(:disabledPolicy, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy + ) + + field(:hasUnpublishedChanges) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Lifecycle do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle_disabled_policy.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle_disabled_policy.ex new file mode 100644 index 0000000000..53a8c0f1f7 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lifecycle_disabled_policy.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy do + @moduledoc """ + The policy that governs how to treat a disabled label, field, or selection choice in different contexts. + + ## Attributes + + * `hideInSearch` (*type:* `boolean()`, *default:* `nil`) - Whether to hide this disabled object in the search menu for Drive items. * When `false`, the object is generally shown in the UI as disabled but it appears in the search results when searching for Drive items. * When `true`, the object is generally hidden in the UI when searching for Drive items. + * `showInApply` (*type:* `boolean()`, *default:* `nil`) - Whether to show this disabled object in the apply menu on Drive items. * When `true`, the object is generally shown in the UI as disabled and is unselectable. * When `false`, the object is generally hidden in the UI. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hideInSearch => boolean() | nil, + :showInApply => boolean() | nil + } + + field(:hideInSearch) + field(:showInApply) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LifecycleDisabledPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_locks_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_locks_response.ex new file mode 100644 index 0000000000..c44dff9a9f --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_locks_response.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse do + @moduledoc """ + The response to a ListLabelLocksRequest. + + ## Attributes + + * `labelLocks` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock.t)`, *default:* `nil`) - LabelLocks. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token of the next page in the response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labelLocks => + list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:labelLocks, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelLock, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelLocksResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_permissions_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_permissions_response.ex new file mode 100644 index 0000000000..dad9b771b5 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_label_permissions_response.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse do + @moduledoc """ + Response for listing the permissions on a Label. + + ## Attributes + + * `labelPermissions` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t)`, *default:* `nil`) - Label permissions. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token of the next page in the response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labelPermissions => + list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:labelPermissions, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelPermissionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_labels_response.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_labels_response.ex new file mode 100644 index 0000000000..bdbc92ac8c --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_labels_response.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse do + @moduledoc """ + Response for listing Labels. + + ## Attributes + + * `labels` (*type:* `list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t)`, *default:* `nil`) - Labels. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token of the next page in the response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labels => list(GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:labels, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2Label, type: :list) + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLabelsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_limits.ex new file mode 100644 index 0000000000..ffdab77de3 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_list_limits.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits do + @moduledoc """ + Limits for list-variant of a Field type. + + ## Attributes + + * `maxEntries` (*type:* `integer()`, *default:* `nil`) - Maximum number of values allowed for the Field type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxEntries => integer() | nil + } + + field(:maxEntries) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lock_status.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lock_status.ex new file mode 100644 index 0000000000..35eef692ec --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_lock_status.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus do + @moduledoc """ + Contains information about whether a label component should be considered locked. + + ## Attributes + + * `locked` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether this label component is the (direct) target of a LabelLock. A label component can be implicitly locked even if it's not the direct target of a LabelLock, in which case this field is set to false. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :locked => boolean() | nil + } + + field(:locked) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LockStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_long_text_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_long_text_limits.ex new file mode 100644 index 0000000000..d6c7d906cd --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_long_text_limits.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits do + @moduledoc """ + Limits for long text Field type. + + ## Attributes + + * `maxLength` (*type:* `integer()`, *default:* `nil`) - Maximum length allowed for a long text Field type. + * `minLength` (*type:* `integer()`, *default:* `nil`) - Minimum length allowed for a long text Field type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxLength => integer() | nil, + :minLength => integer() | nil + } + + field(:maxLength) + field(:minLength) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LongTextLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_publish_label_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_publish_label_request.ex new file mode 100644 index 0000000000..0adbdc4d9d --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_publish_label_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2PublishLabelRequest do + @moduledoc """ + Request to publish a label. + + ## Attributes + + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `writeControl` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t`, *default:* `nil`) - Provides control over how write requests are executed. Defaults to unset, which means last write wins. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :languageCode => String.t() | nil, + :useAdminAccess => boolean() | nil, + :writeControl => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.t() | nil + } + + field(:languageCode) + field(:useAdminAccess) + field(:writeControl, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2PublishLabelRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2PublishLabelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2PublishLabelRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_selection_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_selection_limits.ex new file mode 100644 index 0000000000..c232fa8005 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_selection_limits.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits do + @moduledoc """ + Limits for selection Field type. + + ## Attributes + + * `listLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits.t`, *default:* `nil`) - Limits for list-variant of a Field type. + * `maxChoices` (*type:* `integer()`, *default:* `nil`) - The max number of choices. + * `maxDeletedChoices` (*type:* `integer()`, *default:* `nil`) - Maximum number of deleted choices. + * `maxDisplayNameLength` (*type:* `integer()`, *default:* `nil`) - Maximum length for display name. + * `maxIdLength` (*type:* `integer()`, *default:* `nil`) - Maximum ID length for a selection options. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :listLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits.t() | nil, + :maxChoices => integer() | nil, + :maxDeletedChoices => integer() | nil, + :maxDisplayNameLength => integer() | nil, + :maxIdLength => integer() | nil + } + + field(:listLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits) + field(:maxChoices) + field(:maxDeletedChoices) + field(:maxDisplayNameLength) + field(:maxIdLength) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2SelectionLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_text_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_text_limits.ex new file mode 100644 index 0000000000..5451ffb62f --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_text_limits.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits do + @moduledoc """ + Limits for text Field type. + + ## Attributes + + * `maxLength` (*type:* `integer()`, *default:* `nil`) - Maximum length allowed for a text Field type. + * `minLength` (*type:* `integer()`, *default:* `nil`) - Minimum length allowed for a text Field type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxLength => integer() | nil, + :minLength => integer() | nil + } + + field(:maxLength) + field(:minLength) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2TextLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_copy_mode_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_copy_mode_request.ex new file mode 100644 index 0000000000..5087f279ea --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_copy_mode_request.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest do + @moduledoc """ + Request to update the `CopyMode` of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \\ + + ## Attributes + + * `copyMode` (*type:* `String.t`, *default:* `nil`) - Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + * `view` (*type:* `String.t`, *default:* `nil`) - When specified, only certain fields belonging to the indicated view will be returned. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :copyMode => String.t() | nil, + :languageCode => String.t() | nil, + :useAdminAccess => boolean() | nil, + :view => String.t() | nil + } + + field(:copyMode) + field(:languageCode) + field(:useAdminAccess) + field(:view) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_permission_request.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_permission_request.ex new file mode 100644 index 0000000000..f4f5a998ea --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_update_label_permission_request.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest do + @moduledoc """ + Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. + + ## Attributes + + * `labelPermission` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t`, *default:* `nil`) - Required. The permission to create or update on the Label. + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent Label resource name. + * `useAdminAccess` (*type:* `boolean()`, *default:* `nil`) - Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labelPermission => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission.t() | nil, + :parent => String.t() | nil, + :useAdminAccess => boolean() | nil + } + + field(:labelPermission, + as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission + ) + + field(:parent) + field(:useAdminAccess) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_capabilities.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_capabilities.ex new file mode 100644 index 0000000000..61e5e36afb --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_capabilities.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities do + @moduledoc """ + The capabilities of a user. + + ## Attributes + + * `canAccessLabelManager` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the user is allowed access to the label manager. + * `canAdministrateLabels` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the user is an administrator for the shared labels feature. + * `canCreateAdminLabels` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the user is allowed to create new admin labels. + * `canCreateSharedLabels` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the user is allowed to create new shared labels. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name for the user capabilities. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canAccessLabelManager => boolean() | nil, + :canAdministrateLabels => boolean() | nil, + :canCreateAdminLabels => boolean() | nil, + :canCreateSharedLabels => boolean() | nil, + :name => String.t() | nil + } + + field(:canAccessLabelManager) + field(:canAdministrateLabels) + field(:canCreateAdminLabels) + field(:canCreateSharedLabels) + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_info.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_info.ex new file mode 100644 index 0000000000..496f915121 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_info.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo do + @moduledoc """ + Information about a user. + + ## Attributes + + * `person` (*type:* `String.t`, *default:* `nil`) - The identifier for this user that can be used with the People API to get more information. For example, people/12345678. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :person => String.t() | nil + } + + field(:person) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_limits.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_limits.ex new file mode 100644 index 0000000000..0b93da4912 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_user_limits.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits do + @moduledoc """ + Limits for Field.Type.USER. + + ## Attributes + + * `listLimits` (*type:* `GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits.t`, *default:* `nil`) - Limits for list-variant of a Field type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :listLimits => + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits.t() | nil + } + + field(:listLimits, as: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2ListLimits) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2UserLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_write_control.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_write_control.ex new file mode 100644 index 0000000000..938b962ae7 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_apps_drive_labels_v2_write_control.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl do + @moduledoc """ + Provides control over how write requests are executed. When not specified, the last write wins. + + ## Attributes + + * `requiredRevisionId` (*type:* `String.t`, *default:* `nil`) - The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requiredRevisionId => String.t() | nil + } + + field(:requiredRevisionId) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2WriteControl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_protobuf_empty.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_protobuf_empty.ex new file mode 100644 index 0000000000..5e118995c4 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_protobuf_empty.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleProtobufEmpty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_color.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_color.ex new file mode 100644 index 0000000000..f430c76e0f --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_color.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleTypeColor do + @moduledoc """ + Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ... + + ## Attributes + + * `alpha` (*type:* `number()`, *default:* `nil`) - The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0). + * `blue` (*type:* `number()`, *default:* `nil`) - The amount of blue in the color as a value in the interval [0, 1]. + * `green` (*type:* `number()`, *default:* `nil`) - The amount of green in the color as a value in the interval [0, 1]. + * `red` (*type:* `number()`, *default:* `nil`) - The amount of red in the color as a value in the interval [0, 1]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alpha => number() | nil, + :blue => number() | nil, + :green => number() | nil, + :red => number() | nil + } + + field(:alpha) + field(:blue) + field(:green) + field(:red) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleTypeColor do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleTypeColor.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleTypeColor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_date.ex b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_date.ex new file mode 100644 index 0000000000..99f2618780 --- /dev/null +++ b/clients/drive_labels/lib/google_api/drive_labels/v2/model/google_type_date.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.V2.Model.GoogleTypeDate do + @moduledoc """ + Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + + ## Attributes + + * `day` (*type:* `integer()`, *default:* `nil`) - Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. + * `month` (*type:* `integer()`, *default:* `nil`) - Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * `year` (*type:* `integer()`, *default:* `nil`) - Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :day => integer() | nil, + :month => integer() | nil, + :year => integer() | nil + } + + field(:day) + field(:month) + field(:year) +end + +defimpl Poison.Decoder, for: GoogleApi.DriveLabels.V2.Model.GoogleTypeDate do + def decode(value, options) do + GoogleApi.DriveLabels.V2.Model.GoogleTypeDate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DriveLabels.V2.Model.GoogleTypeDate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/drive_labels/mix.exs b/clients/drive_labels/mix.exs new file mode 100644 index 0000000000..94e19ebb80 --- /dev/null +++ b/clients/drive_labels/mix.exs @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DriveLabels.Mixfile do + use Mix.Project + + @version "0.2.0" + + def project() do + [ + app: :google_api_drive_labels, + version: @version, + elixir: "~> 1.6", + build_embedded: Mix.env == :prod, + start_permanent: Mix.env == :prod, + description: description(), + package: package(), + deps: deps(), + source_url: "https://github.com/googleapis/elixir-google-api/tree/master/clients/drive_labels" + ] + end + + def application() do + [extra_applications: [:logger]] + end + + defp deps() do + [ + {:google_gax, "~> 0.4"}, + + {:ex_doc, "~> 0.16", only: :dev} + ] + end + + defp description() do + """ + Drive Labels API client library. An API for managing Drive Labels + """ + end + + defp package() do + [ + files: ["lib", "mix.exs", "README*", "LICENSE"], + maintainers: ["Jeff Ching", "Daniel Azuma"], + licenses: ["Apache 2.0"], + links: %{ + "GitHub" => "https://github.com/googleapis/elixir-google-api/tree/master/clients/drive_labels", + "Homepage" => "https://developers.google.com/drive/labels" + } + ] + end +end diff --git a/clients/drive_labels/test/test_helper.exs b/clients/drive_labels/test/test_helper.exs new file mode 100644 index 0000000000..48d02ebe7a --- /dev/null +++ b/clients/drive_labels/test/test_helper.exs @@ -0,0 +1,35 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +ExUnit.start() + +defmodule GoogleApi.DriveLabels.TestHelper do + + defmacro __using__(opts) do + quote do + use ExUnit.Case, unquote(opts) + import GoogleApi.DriveLabels.TestHelper + end + end + + def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " ")) + def for_scope(scope) do + {:ok, token} = Goth.Token.for_scope(scope) + token.token + end + +end