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

Commit 47d0a11

Browse files
fix: do not modify options object, use defaultScopes (#50)
* fix: do not modify options object, use defaultScopes Regenerated the library using gapic-generator-typescript v1.2.1. * fix(deps): require google-gax ^2.9.2
1 parent 7f1ae38 commit 47d0a11

11 files changed

Lines changed: 847 additions & 642 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"dependencies": {
4242
"google-auth-library": "^6.0.5",
43-
"google-gax": "^2.6.3",
43+
"google-gax": "^2.9.2",
4444
"open": "^7.1.0",
4545
"server-destroy": "^1.0.1"
4646
},

protos/google/analytics/admin/v1alpha/analytics_admin.proto

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,8 @@ message CreateUserLinkRequest {
841841
}
842842
];
843843

844-
// Optional. If notify_new_user is set, then email new user that they've been given
845-
// permissions on the resource.
844+
// Optional. If set, then email the new user notifying them that they've been granted
845+
// permissions to the resource.
846846
bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL];
847847

848848
// Required. The user link to create.
@@ -855,15 +855,21 @@ message BatchCreateUserLinksRequest {
855855
// This field is required. The parent field in the CreateUserLinkRequest
856856
// messages must either be empty or match this field.
857857
// Example format: accounts/1234
858-
string parent = 1 [(google.api.field_behavior) = REQUIRED];
858+
string parent = 1 [
859+
(google.api.field_behavior) = REQUIRED,
860+
(google.api.resource_reference) = {
861+
child_type: "analyticsadmin.googleapis.com/UserLink"
862+
}
863+
];
859864

860-
// Optional. If notify_new_users is set, then email new users that they've been given
861-
// permissions on the resource.
865+
// Optional. If set, then email the new users notifying them that they've been granted
866+
// permissions to the resource. Regardless of whether this is set or not,
867+
// notify_new_user field inside each individual request is ignored.
862868
bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL];
863869

864-
// The requests specifying the user links to create.
870+
// Required. The requests specifying the user links to create.
865871
// A maximum of 1000 user links can be created in a batch.
866-
repeated CreateUserLinkRequest requests = 3;
872+
repeated CreateUserLinkRequest requests = 3 [(google.api.field_behavior) = REQUIRED];
867873
}
868874

869875
// Response message for BatchCreateUserLinks RPC.
@@ -884,11 +890,16 @@ message BatchUpdateUserLinksRequest {
884890
// for. The parent field in the UpdateUserLinkRequest messages must either be
885891
// empty or match this field.
886892
// Example format: accounts/1234
887-
string parent = 1 [(google.api.field_behavior) = REQUIRED];
893+
string parent = 1 [
894+
(google.api.field_behavior) = REQUIRED,
895+
(google.api.resource_reference) = {
896+
child_type: "analyticsadmin.googleapis.com/UserLink"
897+
}
898+
];
888899

889-
// The requests specifying the user links to update.
900+
// Required. The requests specifying the user links to update.
890901
// A maximum of 1000 user links can be updated in a batch.
891-
repeated UpdateUserLinkRequest requests = 2;
902+
repeated UpdateUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED];
892903
}
893904

894905
// Response message for BatchUpdateUserLinks RPC.
@@ -914,11 +925,16 @@ message BatchDeleteUserLinksRequest {
914925
// for. The parent of all values for user link names to delete must match this
915926
// field.
916927
// Example format: accounts/1234
917-
string parent = 1 [(google.api.field_behavior) = REQUIRED];
928+
string parent = 1 [
929+
(google.api.field_behavior) = REQUIRED,
930+
(google.api.resource_reference) = {
931+
child_type: "analyticsadmin.googleapis.com/UserLink"
932+
}
933+
];
918934

919-
// The requests specifying the user links to update.
935+
// Required. The requests specifying the user links to update.
920936
// A maximum of 1000 user links can be updated in a batch.
921-
repeated DeleteUserLinkRequest requests = 2;
937+
repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED];
922938
}
923939

924940
// Request message for GetWebDataStream RPC.
@@ -1182,6 +1198,7 @@ message ListAndroidAppDataStreamsResponse {
11821198
message GetEnhancedMeasurementSettingsRequest {
11831199
// Required. The name of the settings to lookup.
11841200
// Format:
1201+
//
11851202
// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
11861203
// Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
11871204
string name = 1 [

protos/google/analytics/admin/v1alpha/resources.proto

Lines changed: 110 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,111 @@ option java_multiple_files = true;
2626
option java_outer_classname = "ResourcesProto";
2727
option java_package = "com.google.analytics.admin.v1alpha";
2828

29+
// Maximum access settings that Firebase user receive on the linked Analytics
30+
// property.
31+
enum MaximumUserAccess {
32+
// Unspecified maximum user access.
33+
MAXIMUM_USER_ACCESS_UNSPECIFIED = 0;
34+
35+
// Firebase users have no access to the Analytics property.
36+
NO_ACCESS = 1;
37+
38+
// Firebase users have Read & Analyze access to the Analytics property.
39+
READ_AND_ANALYZE = 2;
40+
41+
// Firebase users have edit access to the Analytics property, but may not
42+
// manage the Firebase link.
43+
EDITOR_WITHOUT_LINK_MANAGEMENT = 3;
44+
45+
// Firebase users have edit access to the Analytics property and may manage
46+
// the Firebase link.
47+
EDITOR_INCLUDING_LINK_MANAGEMENT = 4;
48+
}
49+
50+
// The category selected for this property, used for industry benchmarking.
51+
enum IndustryCategory {
52+
// Industry category unspecified
53+
INDUSTRY_CATEGORY_UNSPECIFIED = 0;
54+
55+
// Automotive
56+
AUTOMOTIVE = 1;
57+
58+
// Business and industrial markets
59+
BUSINESS_AND_INDUSTRIAL_MARKETS = 2;
60+
61+
// Finance
62+
FINANCE = 3;
63+
64+
// Healthcare
65+
HEALTHCARE = 4;
66+
67+
// Technology
68+
TECHNOLOGY = 5;
69+
70+
// Travel
71+
TRAVEL = 6;
72+
73+
// Other
74+
OTHER = 7;
75+
76+
// Arts and entertainment
77+
ARTS_AND_ENTERTAINMENT = 8;
78+
79+
// Beauty and fitness
80+
BEAUTY_AND_FITNESS = 9;
81+
82+
// Books and literature
83+
BOOKS_AND_LITERATURE = 10;
84+
85+
// Food and drink
86+
FOOD_AND_DRINK = 11;
87+
88+
// Games
89+
GAMES = 12;
90+
91+
// Hobbies and leisure
92+
HOBBIES_AND_LEISURE = 13;
93+
94+
// Home and garden
95+
HOME_AND_GARDEN = 14;
96+
97+
// Internet and telecom
98+
INTERNET_AND_TELECOM = 15;
99+
100+
// Law and government
101+
LAW_AND_GOVERNMENT = 16;
102+
103+
// News
104+
NEWS = 17;
105+
106+
// Online communities
107+
ONLINE_COMMUNITIES = 18;
108+
109+
// People and society
110+
PEOPLE_AND_SOCIETY = 19;
111+
112+
// Pets and animals
113+
PETS_AND_ANIMALS = 20;
114+
115+
// Real estate
116+
REAL_ESTATE = 21;
117+
118+
// Reference
119+
REFERENCE = 22;
120+
121+
// Science
122+
SCIENCE = 23;
123+
124+
// Sports
125+
SPORTS = 24;
126+
127+
// Jobs and education
128+
JOBS_AND_EDUCATION = 25;
129+
130+
// Shopping
131+
SHOPPING = 26;
132+
}
133+
29134
// A resource message representing a Google Analytics account.
30135
message Account {
31136
option (google.api.resource) = {
@@ -48,7 +153,10 @@ message Account {
48153
string display_name = 4 [(google.api.field_behavior) = REQUIRED];
49154

50155
// Country of business. Must be a non-deprecated code for a UN M.49 region.
51-
// https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
156+
//
157+
// https:
158+
// //unicode.org/cldr/charts/latest/supplem
159+
// // ental/territory_containment_un_m_49.html
52160
string country_code = 5;
53161

54162
// Output only. Indicates whether this Account is soft-deleted or not. Deleted
@@ -280,6 +388,7 @@ message EnhancedMeasurementSettings {
280388

281389
// Output only. Resource name of this Data Stream.
282390
// Format:
391+
//
283392
// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
284393
// Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
285394
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -465,111 +574,6 @@ message DataSharingSettings {
465574
bool sharing_with_others_enabled = 6;
466575
}
467576

468-
// The category selected for this property, used for industry benchmarking.
469-
enum IndustryCategory {
470-
// Industry category unspecified
471-
INDUSTRY_CATEGORY_UNSPECIFIED = 0;
472-
473-
// Automotive
474-
AUTOMOTIVE = 1;
475-
476-
// Business and industrial markets
477-
BUSINESS_AND_INDUSTRIAL_MARKETS = 2;
478-
479-
// Finance
480-
FINANCE = 3;
481-
482-
// Healthcare
483-
HEALTHCARE = 4;
484-
485-
// Technology
486-
TECHNOLOGY = 5;
487-
488-
// Travel
489-
TRAVEL = 6;
490-
491-
// Other
492-
OTHER = 7;
493-
494-
// Arts and entertainment
495-
ARTS_AND_ENTERTAINMENT = 8;
496-
497-
// Beauty and fitness
498-
BEAUTY_AND_FITNESS = 9;
499-
500-
// Books and literature
501-
BOOKS_AND_LITERATURE = 10;
502-
503-
// Food and drink
504-
FOOD_AND_DRINK = 11;
505-
506-
// Games
507-
GAMES = 12;
508-
509-
// Hobbies and leisure
510-
HOBBIES_AND_LEISURE = 13;
511-
512-
// Home and garden
513-
HOME_AND_GARDEN = 14;
514-
515-
// Internet and telecom
516-
INTERNET_AND_TELECOM = 15;
517-
518-
// Law and government
519-
LAW_AND_GOVERNMENT = 16;
520-
521-
// News
522-
NEWS = 17;
523-
524-
// Online communities
525-
ONLINE_COMMUNITIES = 18;
526-
527-
// People and society
528-
PEOPLE_AND_SOCIETY = 19;
529-
530-
// Pets and animals
531-
PETS_AND_ANIMALS = 20;
532-
533-
// Real estate
534-
REAL_ESTATE = 21;
535-
536-
// Reference
537-
REFERENCE = 22;
538-
539-
// Science
540-
SCIENCE = 23;
541-
542-
// Sports
543-
SPORTS = 24;
544-
545-
// Jobs and education
546-
JOBS_AND_EDUCATION = 25;
547-
548-
// Shopping
549-
SHOPPING = 26;
550-
}
551-
552-
// Maximum access settings that Firebase user receive on the linked Analytics
553-
// property.
554-
enum MaximumUserAccess {
555-
// Unspecified maximum user access.
556-
MAXIMUM_USER_ACCESS_UNSPECIFIED = 0;
557-
558-
// Firebase users have no access to the Analytics property.
559-
NO_ACCESS = 1;
560-
561-
// Firebase users have Read & Analyze access to the Analytics property.
562-
READ_AND_ANALYZE = 2;
563-
564-
// Firebase users have edit access to the Analytics property, but may not
565-
// manage the Firebase link.
566-
EDITOR_WITHOUT_LINK_MANAGEMENT = 3;
567-
568-
// Firebase users have edit access to the Analytics property and may manage
569-
// the Firebase link.
570-
EDITOR_INCLUDING_LINK_MANAGEMENT = 4;
571-
}
572-
573577
// A virtual resource representing an overview of an account and
574578
// all its child GA4 properties.
575579
message AccountSummary {

0 commit comments

Comments
 (0)