Skip to content

Commit 02ee977

Browse files
committed
Add samples for hold migration.
1 parent 82d2093 commit 02ee977

File tree

10 files changed

+1440
-0
lines changed

10 files changed

+1440
-0
lines changed

vault/vault-hold-migration-api/apis.ipr

Lines changed: 365 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 318 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,318 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project version="4">
3+
<component name="ChangeListManager">
4+
<list default="true" id="0add35cd-7102-46c5-9a5c-eef5099d1c18" name="Default Changelist" comment="" />
5+
<ignored path="$PROJECT_DIR$/.gradle/" />
6+
<ignored path="$PROJECT_DIR$/build/" />
7+
<ignored path="$PROJECT_DIR$/out/" />
8+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9+
<option name="SHOW_DIALOG" value="false" />
10+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
11+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12+
<option name="LAST_RESOLUTION" value="IGNORE" />
13+
</component>
14+
<component name="CreatePatchCommitExecutor">
15+
<option name="PATCH_PATH" value="" />
16+
<option name="REVERSE_PATCH" value="false" />
17+
</component>
18+
<component name="DebuggerManager">
19+
<breakpoint_any converted="true">
20+
<breakpoint>
21+
<option name="NOTIFY_CAUGHT" value="true" />
22+
<option name="NOTIFY_UNCAUGHT" value="true" />
23+
<option name="ENABLED" value="false" />
24+
<option name="LOG_ENABLED" value="false" />
25+
<option name="LOG_EXPRESSION_ENABLED" value="false" />
26+
<option name="SUSPEND_POLICY" value="SuspendAll" />
27+
<option name="COUNT_FILTER_ENABLED" value="false" />
28+
<option name="COUNT_FILTER" value="0" />
29+
<option name="CONDITION_ENABLED" value="false" />
30+
<option name="CLASS_FILTERS_ENABLED" value="false" />
31+
<option name="INSTANCE_FILTERS_ENABLED" value="false" />
32+
<option name="CONDITION" value="" />
33+
<option name="LOG_MESSAGE" value="" />
34+
</breakpoint>
35+
<breakpoint>
36+
<option name="NOTIFY_CAUGHT" value="true" />
37+
<option name="NOTIFY_UNCAUGHT" value="true" />
38+
<option name="ENABLED" value="false" />
39+
<option name="LOG_ENABLED" value="false" />
40+
<option name="LOG_EXPRESSION_ENABLED" value="false" />
41+
<option name="SUSPEND_POLICY" value="SuspendAll" />
42+
<option name="COUNT_FILTER_ENABLED" value="false" />
43+
<option name="COUNT_FILTER" value="0" />
44+
<option name="CONDITION_ENABLED" value="false" />
45+
<option name="CLASS_FILTERS_ENABLED" value="false" />
46+
<option name="INSTANCE_FILTERS_ENABLED" value="false" />
47+
<option name="CONDITION" value="" />
48+
<option name="LOG_MESSAGE" value="" />
49+
</breakpoint>
50+
</breakpoint_any>
51+
<breakpoint_rules converted="true" />
52+
<ui_properties converted="true" />
53+
</component>
54+
<component name="ExternalProjectsData">
55+
<projectState path="$PROJECT_DIR$">
56+
<ProjectState />
57+
</projectState>
58+
</component>
59+
<component name="ExternalProjectsManager">
60+
<system id="GRADLE">
61+
<state>
62+
<projects_view />
63+
</state>
64+
</system>
65+
</component>
66+
<component name="FileEditorManager">
67+
<leaf>
68+
<file pinned="false" current-in-tab="false">
69+
<entry file="file://$PROJECT_DIR$/src/main/java/Quickstart.java">
70+
<provider selected="true" editor-type-id="text-editor">
71+
<state relative-caret-position="175">
72+
<caret line="111" column="18" selection-start-line="111" selection-start-column="18" selection-end-line="111" selection-end-column="18" />
73+
<folding>
74+
<element signature="imports" expanded="true" />
75+
<element signature="e#5029#5050#0" expanded="true" />
76+
</folding>
77+
</state>
78+
</provider>
79+
</entry>
80+
</file>
81+
<file pinned="false" current-in-tab="true">
82+
<entry file="file://$PROJECT_DIR$/build.gradle">
83+
<provider selected="true" editor-type-id="text-editor">
84+
<state relative-caret-position="275">
85+
<caret line="11" column="1" selection-start-line="11" selection-start-column="1" selection-end-line="11" selection-end-column="1" />
86+
</state>
87+
</provider>
88+
</entry>
89+
</file>
90+
<file pinned="false" current-in-tab="false">
91+
<entry file="file://$PROJECT_DIR$/src/main/java/HoldRecord.java">
92+
<provider selected="true" editor-type-id="text-editor">
93+
<state relative-caret-position="50">
94+
<caret line="2" column="28" selection-start-line="2" selection-start-column="28" selection-end-line="2" selection-end-column="28" />
95+
</state>
96+
</provider>
97+
</entry>
98+
</file>
99+
</leaf>
100+
</component>
101+
<component name="IdeDocumentHistory">
102+
<option name="CHANGED_PATHS">
103+
<list>
104+
<option value="$PROJECT_DIR$/src/main/java/HoldRecord.java" />
105+
<option value="$PROJECT_DIR$/src/main/java/Quickstart.java" />
106+
<option value="$PROJECT_DIR$/build.gradle" />
107+
</list>
108+
</option>
109+
</component>
110+
<component name="ModuleEditorState">
111+
<option name="LAST_EDITED_MODULE_NAME" />
112+
<option name="LAST_EDITED_TAB_NAME" />
113+
</component>
114+
<component name="ProjectFrameBounds">
115+
<option name="y" value="88" />
116+
<option name="width" value="1920" />
117+
<option name="height" value="1104" />
118+
</component>
119+
<component name="ProjectInspectionProfilesVisibleTreeState">
120+
<entry key="Project Default">
121+
<profile-state />
122+
</entry>
123+
</component>
124+
<component name="ProjectReloadState">
125+
<option name="STATE" value="0" />
126+
</component>
127+
<component name="ProjectView">
128+
<navigator proportions="" version="1">
129+
<foldersAlwaysOnTop value="true" />
130+
</navigator>
131+
<panes>
132+
<pane id="ProjectPane">
133+
<subPane>
134+
<expand>
135+
<path>
136+
<item name="apis" type="b2602c69:ProjectViewProjectNode" />
137+
<item name="apis" type="8a07ba80:GradleTreeStructureProvider$GradleModuleDirectoryNode" />
138+
</path>
139+
</expand>
140+
<select />
141+
</subPane>
142+
</pane>
143+
<pane id="PackagesPane" />
144+
<pane id="Scope" />
145+
</panes>
146+
</component>
147+
<component name="PropertiesComponent">
148+
<property name="GoToClass.includeLibraries" value="false" />
149+
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
150+
<property name="GoToFile.includeJavaFiles" value="false" />
151+
<property name="MemberChooser.copyJavadoc" value="false" />
152+
<property name="MemberChooser.showClasses" value="true" />
153+
<property name="MemberChooser.sorted" value="false" />
154+
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1545442906386" />
155+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
156+
</component>
157+
<component name="RunDashboard">
158+
<option name="ruleStates">
159+
<list>
160+
<RuleState>
161+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
162+
</RuleState>
163+
<RuleState>
164+
<option name="name" value="StatusDashboardGroupingRule" />
165+
</RuleState>
166+
</list>
167+
</option>
168+
</component>
169+
<component name="RunManager">
170+
<configuration name="&lt;template&gt;" type="WebApp" default="true" selected="false">
171+
<Host>localhost</Host>
172+
<Port>5050</Port>
173+
</configuration>
174+
<configuration default="true" type="Applet">
175+
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
176+
<method v="2">
177+
<option name="BuildArtifacts" enabled="false" />
178+
<option name="Make" enabled="true" />
179+
</method>
180+
</configuration>
181+
<configuration name="Quickstart" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
182+
<option name="MAIN_CLASS_NAME" value="Quickstart" />
183+
<module name="apis.main" />
184+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
185+
<method v="2">
186+
<option name="BuildArtifacts" enabled="false" />
187+
<option name="Make" enabled="true" />
188+
</method>
189+
</configuration>
190+
<configuration default="true" type="Application" factoryName="Application">
191+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
192+
<method v="2">
193+
<option name="BuildArtifacts" enabled="false" />
194+
<option name="Make" enabled="true" />
195+
</method>
196+
</configuration>
197+
<configuration default="true" type="JUnit" factoryName="JUnit">
198+
<option name="VM_PARAMETERS" />
199+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
200+
<option name="TEST_SEARCH_SCOPE">
201+
<value defaultName="moduleWithDependencies" />
202+
</option>
203+
<method v="2">
204+
<option name="BuildArtifacts" enabled="false" />
205+
<option name="Make" enabled="true" />
206+
</method>
207+
</configuration>
208+
<configuration default="true" type="Remote">
209+
<option name="USE_SOCKET_TRANSPORT" value="true" />
210+
<option name="SERVER_MODE" value="false" />
211+
<option name="SHMEM_ADDRESS" value="javadebug" />
212+
<option name="HOST" value="localhost" />
213+
<option name="PORT" value="5005" />
214+
<option name="AUTO_RESTART" value="false" />
215+
<method v="2">
216+
<option name="BuildArtifacts" enabled="false" />
217+
</method>
218+
</configuration>
219+
<recent_temporary>
220+
<list>
221+
<item itemvalue="Application.Quickstart" />
222+
</list>
223+
</recent_temporary>
224+
</component>
225+
<component name="SvnConfiguration">
226+
<configuration />
227+
</component>
228+
<component name="TaskManager">
229+
<task active="true" id="Default" summary="Default task">
230+
<changelist id="0add35cd-7102-46c5-9a5c-eef5099d1c18" name="Default Changelist" comment="" />
231+
<created>1545441840185</created>
232+
<option name="number" value="Default" />
233+
<option name="presentableId" value="Default" />
234+
<updated>1545441840185</updated>
235+
</task>
236+
<servers />
237+
</component>
238+
<component name="ToolWindowManager">
239+
<frame x="0" y="88" width="1920" height="1104" extended-state="0" />
240+
<layout>
241+
<window_info id="Image Layers" />
242+
<window_info id="Designer" />
243+
<window_info id="UI Designer" />
244+
<window_info id="Capture Tool" />
245+
<window_info id="Favorites" side_tool="true" />
246+
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.17899892" />
247+
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
248+
<window_info anchor="bottom" id="Version Control" />
249+
<window_info anchor="bottom" id="Terminal" />
250+
<window_info anchor="bottom" id="Event Log" side_tool="true" />
251+
<window_info anchor="bottom" id="Build" weight="0.32975295" />
252+
<window_info anchor="bottom" id="Messages" weight="0.32975295" />
253+
<window_info anchor="bottom" id="Message" order="0" />
254+
<window_info anchor="bottom" id="Find" order="1" />
255+
<window_info anchor="bottom" id="Run" order="2" />
256+
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
257+
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
258+
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
259+
<window_info anchor="bottom" id="TODO" order="6" />
260+
<window_info anchor="right" id="Palette" />
261+
<window_info anchor="right" id="Gradle" />
262+
<window_info anchor="right" id="Theme Preview" />
263+
<window_info anchor="right" id="Maven" />
264+
<window_info anchor="right" id="Capture Analysis" />
265+
<window_info anchor="right" id="Palette&#9;" />
266+
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
267+
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
268+
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
269+
</layout>
270+
</component>
271+
<component name="VcsManagerConfiguration">
272+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
273+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
274+
</component>
275+
<component name="editorHistoryManager">
276+
<entry file="jar:///usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar!/java/util/concurrent/Callable.class">
277+
<provider selected="true" editor-type-id="text-editor">
278+
<state relative-caret-position="175">
279+
<caret line="8" column="6" selection-start-line="8" selection-start-column="6" selection-end-line="8" selection-end-column="6" />
280+
</state>
281+
</provider>
282+
</entry>
283+
<entry file="file://$PROJECT_DIR$/src/main/java/HoldRecord.java">
284+
<provider selected="true" editor-type-id="text-editor">
285+
<state relative-caret-position="50">
286+
<caret line="2" column="28" selection-start-line="2" selection-start-column="28" selection-end-line="2" selection-end-column="28" />
287+
</state>
288+
</provider>
289+
</entry>
290+
<entry file="file://$PROJECT_DIR$/src/main/java/Quickstart.java">
291+
<provider selected="true" editor-type-id="text-editor">
292+
<state relative-caret-position="175">
293+
<caret line="111" column="18" selection-start-line="111" selection-start-column="18" selection-end-line="111" selection-end-column="18" />
294+
<folding>
295+
<element signature="imports" expanded="true" />
296+
<element signature="e#5029#5050#0" expanded="true" />
297+
</folding>
298+
</state>
299+
</provider>
300+
</entry>
301+
<entry file="file://$PROJECT_DIR$/settings.gradle">
302+
<provider selected="true" editor-type-id="text-editor">
303+
<state>
304+
<folding>
305+
<element signature="n#!!doc" expanded="true" />
306+
</folding>
307+
</state>
308+
</provider>
309+
</entry>
310+
<entry file="file://$PROJECT_DIR$/build.gradle">
311+
<provider selected="true" editor-type-id="text-editor">
312+
<state relative-caret-position="275">
313+
<caret line="11" column="1" selection-start-line="11" selection-start-column="1" selection-end-line="11" selection-end-column="1" />
314+
</state>
315+
</provider>
316+
</entry>
317+
</component>
318+
</project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apply plugin: 'java'
2+
apply plugin: 'application'
3+
apply plugin: 'idea'
4+
5+
mainClassName = 'com.google.vault.chatmigration.QuickStart'
6+
sourceCompatibility = 1.8
7+
targetCompatibility = 1.8
8+
version = '1.0'
9+
10+
repositories {
11+
mavenCentral()
12+
}
13+
14+
dependencies {
15+
compile 'com.google.api-client:google-api-client:1.23.0'
16+
compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
17+
compile 'com.google.apis:google-api-services-vault:v1-rev8-1.23.0'
18+
compile group: 'org.apache.commons', name: 'commons-csv', version: '1.1'
19+
compile "com.github.rholder:guava-retrying:2.0.0"
20+
compile 'com.google.apis:google-api-services-admin-directory:directory_v1-rev53-1.20.0'
21+
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
22+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* This settings file was auto generated by the Gradle buildInit task
3+
* by 'arajasekar' at '12/21/18 12:34 AM' with Gradle 3.2.1
4+
*
5+
* The settings file is used to specify which projects to include in your build.
6+
* In a single project build this file can be empty or even removed.
7+
*
8+
* Detailed information about configuring a multi-project build in Gradle can be found
9+
* in the user guide at https://docs.gradle.org/3.2.1/userguide/multi_project_builds.html
10+
*/
11+
12+
/*
13+
// To declare projects as part of a multi-project build use the 'include' method
14+
include 'shared'
15+
include 'api'
16+
include 'services:webservice'
17+
*/
18+
19+
rootProject.name = 'apis'

0 commit comments

Comments
 (0)