Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit ca467ec

Browse files
yoshi-automationNeenu1995eaball35
authored
fix!: remove CreateIosAppDataStream, CreateAndroidAppDataStream methods from the API (#203)
* fix!: remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API feat: add `SearchChangeHistoryEvents` method to the API fix!: update `DeleteProperty` method to return the deleted property data as `Property` type instead of returning an empty response feat: add `ActorType`, `ActionType`, `ChangeHistoryResourceType`, `ChangeHistoryEvent`, `ChangeHistoryChange` types used by `SearchChangeHistoryEvents` method fix!: update `time_zone` field of `Property` type to be required feat: add `delete_time`, `expire_time` output only fields to `Property` type fix!: remove `deleted` field from `Property` type PiperOrigin-RevId: 370749341 Source-Link: googleapis/googleapis@2375bb4 Source-Author: Bazel Bot <bazel-bot-development[bot]@users.noreply.github.com> Source-Date: Tue Apr 27 21:38:05 2021 +0000 Source-Repo: googleapis/googleapis-gen Source-Sha: ee560452477d92572edb133386e7129532db8ba6 Source-Link: googleapis/googleapis-gen@ee56045 * chore: add clirr-ignored-differences Co-authored-by: Neenu1995 <neenushaji@google.com> Co-authored-by: Emily Ball <emilyball@google.com>
1 parent 7eac98a commit ca467ec

34 files changed

+14356
-3919
lines changed
Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
33
<differences>
4-
<!-- TODO: remove after 0.3.0 is released -->
4+
<!-- TODO: Remove after 0.4.0 is released -->
55
<difference>
6-
<differenceType>7006</differenceType>
7-
<className>com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient</className>
8-
<method> com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks(*)</method>
9-
<to>com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient$ListFirebaseLinksPagedResponse</to>
10-
</difference>
11-
<difference>
12-
<differenceType>7006</differenceType>
13-
<className>com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings</className>
14-
<method>com.google.api.gax.rpc.UnaryCallSettings listFirebaseLinksSettings()</method>
15-
<to>com.google.api.gax.rpc.PagedCallSettings</to>
6+
<differenceType>7002</differenceType>
7+
<className>com/google/analytics/admin/v1alpha/*AnalyticsAdminService*</className>
8+
<method>* create*(*)</method>
169
</difference>
1710
<difference>
18-
<differenceType>7006</differenceType>
19-
<className>com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings$Builder</className>
20-
<method>com.google.api.gax.rpc.UnaryCallSettings$Builder listFirebaseLinksSettings()</method>
21-
<to>com.google.api.gax.rpc.PagedCallSettings$Builder</to>
22-
</difference>
23-
<difference>
24-
<differenceType>7006</differenceType>
25-
<className>com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings</className>
26-
<method>com.google.api.gax.rpc.UnaryCallSettings listFirebaseLinksSettings()</method>
27-
<to>com.google.api.gax.rpc.PagedCallSettings</to>
11+
<differenceType>7002</differenceType>
12+
<className>com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminService*</className>
13+
<method>* create*(*)</method>
2814
</difference>
2915
<difference>
3016
<differenceType>7006</differenceType>
31-
<className>com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings$Builder</className>
32-
<method>com.google.api.gax.rpc.UnaryCallSettings$Builder listFirebaseLinksSettings()</method>
33-
<to>com.google.api.gax.rpc.PagedCallSettings$Builder</to>
17+
<className>com/google/analytics/admin/v1alpha/AnalyticsAdminService*</className>
18+
<method>* deleteProperty(*)</method>
19+
<to>com.google.analytics.admin.v1alpha.Property</to>
3420
</difference>
3521
</differences>

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java

Lines changed: 228 additions & 291 deletions
Large diffs are not rendered by default.

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
2727
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
2828
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse;
29+
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse;
2930

3031
import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings;
3132
import com.google.api.core.ApiFunction;
@@ -136,7 +137,7 @@ public UnaryCallSettings<CreatePropertyRequest, Property> createPropertySettings
136137
}
137138

138139
/** Returns the object with the settings used for calls to deleteProperty. */
139-
public UnaryCallSettings<DeletePropertyRequest, Empty> deletePropertySettings() {
140+
public UnaryCallSettings<DeletePropertyRequest, Property> deletePropertySettings() {
140141
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings();
141142
}
142143

@@ -247,12 +248,6 @@ public UnaryCallSettings<DeleteIosAppDataStreamRequest, Empty> deleteIosAppDataS
247248
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateIosAppDataStreamSettings();
248249
}
249250

250-
/** Returns the object with the settings used for calls to createIosAppDataStream. */
251-
public UnaryCallSettings<CreateIosAppDataStreamRequest, IosAppDataStream>
252-
createIosAppDataStreamSettings() {
253-
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createIosAppDataStreamSettings();
254-
}
255-
256251
/** Returns the object with the settings used for calls to listIosAppDataStreams. */
257252
public PagedCallSettings<
258253
ListIosAppDataStreamsRequest,
@@ -283,13 +278,6 @@ public UnaryCallSettings<DeleteIosAppDataStreamRequest, Empty> deleteIosAppDataS
283278
.updateAndroidAppDataStreamSettings();
284279
}
285280

286-
/** Returns the object with the settings used for calls to createAndroidAppDataStream. */
287-
public UnaryCallSettings<CreateAndroidAppDataStreamRequest, AndroidAppDataStream>
288-
createAndroidAppDataStreamSettings() {
289-
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
290-
.createAndroidAppDataStreamSettings();
291-
}
292-
293281
/** Returns the object with the settings used for calls to listAndroidAppDataStreams. */
294282
public PagedCallSettings<
295283
ListAndroidAppDataStreamsRequest,
@@ -371,6 +359,16 @@ public UnaryCallSettings<DeleteGoogleAdsLinkRequest, Empty> deleteGoogleAdsLinkS
371359
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings();
372360
}
373361

362+
/** Returns the object with the settings used for calls to searchChangeHistoryEvents. */
363+
public PagedCallSettings<
364+
SearchChangeHistoryEventsRequest,
365+
SearchChangeHistoryEventsResponse,
366+
SearchChangeHistoryEventsPagedResponse>
367+
searchChangeHistoryEventsSettings() {
368+
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
369+
.searchChangeHistoryEventsSettings();
370+
}
371+
374372
public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub)
375373
throws IOException {
376374
return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build();
@@ -525,7 +523,7 @@ public UnaryCallSettings.Builder<CreatePropertyRequest, Property> createProperty
525523
}
526524

527525
/** Returns the builder for the settings used for calls to deleteProperty. */
528-
public UnaryCallSettings.Builder<DeletePropertyRequest, Empty> deletePropertySettings() {
526+
public UnaryCallSettings.Builder<DeletePropertyRequest, Property> deletePropertySettings() {
529527
return getStubSettingsBuilder().deletePropertySettings();
530528
}
531529

@@ -641,12 +639,6 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
641639
return getStubSettingsBuilder().updateIosAppDataStreamSettings();
642640
}
643641

644-
/** Returns the builder for the settings used for calls to createIosAppDataStream. */
645-
public UnaryCallSettings.Builder<CreateIosAppDataStreamRequest, IosAppDataStream>
646-
createIosAppDataStreamSettings() {
647-
return getStubSettingsBuilder().createIosAppDataStreamSettings();
648-
}
649-
650642
/** Returns the builder for the settings used for calls to listIosAppDataStreams. */
651643
public PagedCallSettings.Builder<
652644
ListIosAppDataStreamsRequest,
@@ -674,12 +666,6 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
674666
return getStubSettingsBuilder().updateAndroidAppDataStreamSettings();
675667
}
676668

677-
/** Returns the builder for the settings used for calls to createAndroidAppDataStream. */
678-
public UnaryCallSettings.Builder<CreateAndroidAppDataStreamRequest, AndroidAppDataStream>
679-
createAndroidAppDataStreamSettings() {
680-
return getStubSettingsBuilder().createAndroidAppDataStreamSettings();
681-
}
682-
683669
/** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */
684670
public PagedCallSettings.Builder<
685671
ListAndroidAppDataStreamsRequest,
@@ -765,6 +751,15 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
765751
return getStubSettingsBuilder().getDataSharingSettingsSettings();
766752
}
767753

754+
/** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */
755+
public PagedCallSettings.Builder<
756+
SearchChangeHistoryEventsRequest,
757+
SearchChangeHistoryEventsResponse,
758+
SearchChangeHistoryEventsPagedResponse>
759+
searchChangeHistoryEventsSettings() {
760+
return getStubSettingsBuilder().searchChangeHistoryEventsSettings();
761+
}
762+
768763
@Override
769764
public AnalyticsAdminServiceSettings build() throws IOException {
770765
return new AnalyticsAdminServiceSettings(this);

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,12 @@
2525
"BatchUpdateUserLinks": {
2626
"methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"]
2727
},
28-
"CreateAndroidAppDataStream": {
29-
"methods": ["createAndroidAppDataStream", "createAndroidAppDataStream", "createAndroidAppDataStream", "createAndroidAppDataStreamCallable"]
30-
},
3128
"CreateFirebaseLink": {
3229
"methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"]
3330
},
3431
"CreateGoogleAdsLink": {
3532
"methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"]
3633
},
37-
"CreateIosAppDataStream": {
38-
"methods": ["createIosAppDataStream", "createIosAppDataStream", "createIosAppDataStream", "createIosAppDataStreamCallable"]
39-
},
4034
"CreateProperty": {
4135
"methods": ["createProperty", "createProperty", "createPropertyCallable"]
4236
},
@@ -127,6 +121,9 @@
127121
"ProvisionAccountTicket": {
128122
"methods": ["provisionAccountTicket", "provisionAccountTicketCallable"]
129123
},
124+
"SearchChangeHistoryEvents": {
125+
"methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"]
126+
},
130127
"UpdateAccount": {
131128
"methods": ["updateAccount", "updateAccount", "updateAccountCallable"]
132129
},

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
2727
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
2828
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse;
29+
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse;
2930

3031
import com.google.analytics.admin.v1alpha.Account;
3132
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
@@ -38,10 +39,8 @@
3839
import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse;
3940
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
4041
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
41-
import com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest;
4242
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
4343
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
44-
import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest;
4544
import com.google.analytics.admin.v1alpha.CreatePropertyRequest;
4645
import com.google.analytics.admin.v1alpha.CreateUserLinkRequest;
4746
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
@@ -89,6 +88,8 @@
8988
import com.google.analytics.admin.v1alpha.Property;
9089
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest;
9190
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse;
91+
import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest;
92+
import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse;
9293
import com.google.analytics.admin.v1alpha.UpdateAccountRequest;
9394
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
9495
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
@@ -168,7 +169,7 @@ public UnaryCallable<CreatePropertyRequest, Property> createPropertyCallable() {
168169
throw new UnsupportedOperationException("Not implemented: createPropertyCallable()");
169170
}
170171

171-
public UnaryCallable<DeletePropertyRequest, Empty> deletePropertyCallable() {
172+
public UnaryCallable<DeletePropertyRequest, Property> deletePropertyCallable() {
172173
throw new UnsupportedOperationException("Not implemented: deletePropertyCallable()");
173174
}
174175

@@ -268,11 +269,6 @@ public UnaryCallable<DeleteIosAppDataStreamRequest, Empty> deleteIosAppDataStrea
268269
throw new UnsupportedOperationException("Not implemented: updateIosAppDataStreamCallable()");
269270
}
270271

271-
public UnaryCallable<CreateIosAppDataStreamRequest, IosAppDataStream>
272-
createIosAppDataStreamCallable() {
273-
throw new UnsupportedOperationException("Not implemented: createIosAppDataStreamCallable()");
274-
}
275-
276272
public UnaryCallable<ListIosAppDataStreamsRequest, ListIosAppDataStreamsPagedResponse>
277273
listIosAppDataStreamsPagedCallable() {
278274
throw new UnsupportedOperationException(
@@ -301,12 +297,6 @@ public UnaryCallable<DeleteIosAppDataStreamRequest, Empty> deleteIosAppDataStrea
301297
"Not implemented: updateAndroidAppDataStreamCallable()");
302298
}
303299

304-
public UnaryCallable<CreateAndroidAppDataStreamRequest, AndroidAppDataStream>
305-
createAndroidAppDataStreamCallable() {
306-
throw new UnsupportedOperationException(
307-
"Not implemented: createAndroidAppDataStreamCallable()");
308-
}
309-
310300
public UnaryCallable<ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsPagedResponse>
311301
listAndroidAppDataStreamsPagedCallable() {
312302
throw new UnsupportedOperationException(
@@ -383,6 +373,17 @@ public UnaryCallable<DeleteGoogleAdsLinkRequest, Empty> deleteGoogleAdsLinkCalla
383373
throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()");
384374
}
385375

376+
public UnaryCallable<SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse>
377+
searchChangeHistoryEventsPagedCallable() {
378+
throw new UnsupportedOperationException(
379+
"Not implemented: searchChangeHistoryEventsPagedCallable()");
380+
}
381+
382+
public UnaryCallable<SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse>
383+
searchChangeHistoryEventsCallable() {
384+
throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()");
385+
}
386+
386387
@Override
387388
public abstract void close();
388389
}

0 commit comments

Comments
 (0)