google-apis-analyticsadmin_v1alpha 0.45.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73b57fe447e2fc51d94329a3523349ff7248c3d1d9260ad6d98290e9a9fdc93f
4
- data.tar.gz: 35465b8de277c261d05424494dbaa1464cfd98f8b5eb83436d15cd92cfaf1191
3
+ metadata.gz: f7dbfc173e3af12d084481dadfde486f91260aead1fef1f73fdbc5f5fda4766c
4
+ data.tar.gz: d40bbd9f8f6f299edf6bf10cf50c520b259340acb8026fffa0dfcb725d8680bf
5
5
  SHA512:
6
- metadata.gz: 0fc2da45405f47830a40634eb8fc7786d75a0f56b4c67e6fb73e3083cc06215445264c4a49df7604365a731af900a848533f0ce5faccbc532bbf66d1a7e8e29e
7
- data.tar.gz: 43ca41788f6059b4ff8a1f44d2445886ee6f84b30e5336c443bc6b5ce949b25d8b7d99cfb20ae508edf2ffe96b9928c0ffd1a5e7c7fe591bcf4d6fba553a345c
6
+ metadata.gz: 5b19de0f55a5d102d7ec8a78ac59ae8da5a27624ccc4bd2a593f04d1eaed3197e54431f99a30153eef75df37f90c071c298f801ef31d10ff235e15fc6c248752
7
+ data.tar.gz: b5f82b09f991c66cf589370e862ad104a303735e6196e1501118fa67d2b4299af54dd63d0a134b7ecd7e8e41690137288f718af07c133b815e8ed61aeed64cec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-analyticsadmin_v1alpha
2
2
 
3
+ ### v0.46.0 (2023-02-12)
4
+
5
+ * Regenerated from discovery document revision 20230203
6
+
3
7
  ### v0.45.0 (2023-02-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20230131
@@ -47,6 +47,44 @@ module Google
47
47
  end
48
48
  end
49
49
 
50
+ # A binding of a user to a set of roles.
51
+ class GoogleAnalyticsAdminV1alphaAccessBinding
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # Output only. Resource name of this binding. Format: accounts/`account`/
55
+ # accessBindings/`access_binding` or properties/`property`/accessBindings/`
56
+ # access_binding` Example: "accounts/100/accessBindings/200"
57
+ # Corresponds to the JSON property `name`
58
+ # @return [String]
59
+ attr_accessor :name
60
+
61
+ # A list of roles for to grant to the parent resource. Valid values:
62
+ # predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor
63
+ # predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-
64
+ # data For users, if an empty list of roles is set, this AccessBinding will be
65
+ # deleted.
66
+ # Corresponds to the JSON property `roles`
67
+ # @return [Array<String>]
68
+ attr_accessor :roles
69
+
70
+ # If set, the email address of the user to set roles for. Format: "someuser@
71
+ # gmail.com"
72
+ # Corresponds to the JSON property `user`
73
+ # @return [String]
74
+ attr_accessor :user
75
+
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
79
+
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @name = args[:name] if args.key?(:name)
83
+ @roles = args[:roles] if args.key?(:roles)
84
+ @user = args[:user] if args.key?(:user)
85
+ end
86
+ end
87
+
50
88
  # A contiguous range of days: startDate, startDate + 1, ..., endDate.
51
89
  class GoogleAnalyticsAdminV1alphaAccessDateRange
52
90
  include Google::Apis::Core::Hashable
@@ -1438,6 +1476,45 @@ module Google
1438
1476
  end
1439
1477
  end
1440
1478
 
1479
+ # Request message for BatchCreateAccessBindings RPC.
1480
+ class GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest
1481
+ include Google::Apis::Core::Hashable
1482
+
1483
+ # Required. The requests specifying the access bindings to create. A maximum of
1484
+ # 1000 access bindings can be created in a batch.
1485
+ # Corresponds to the JSON property `requests`
1486
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest>]
1487
+ attr_accessor :requests
1488
+
1489
+ def initialize(**args)
1490
+ update!(**args)
1491
+ end
1492
+
1493
+ # Update properties of this object
1494
+ def update!(**args)
1495
+ @requests = args[:requests] if args.key?(:requests)
1496
+ end
1497
+ end
1498
+
1499
+ # Response message for BatchCreateAccessBindings RPC.
1500
+ class GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse
1501
+ include Google::Apis::Core::Hashable
1502
+
1503
+ # The access bindings created.
1504
+ # Corresponds to the JSON property `accessBindings`
1505
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding>]
1506
+ attr_accessor :access_bindings
1507
+
1508
+ def initialize(**args)
1509
+ update!(**args)
1510
+ end
1511
+
1512
+ # Update properties of this object
1513
+ def update!(**args)
1514
+ @access_bindings = args[:access_bindings] if args.key?(:access_bindings)
1515
+ end
1516
+ end
1517
+
1441
1518
  # Request message for BatchCreateUserLinks RPC.
1442
1519
  class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest
1443
1520
  include Google::Apis::Core::Hashable
@@ -1486,6 +1563,26 @@ module Google
1486
1563
  end
1487
1564
  end
1488
1565
 
1566
+ # Request message for BatchDeleteAccessBindings RPC.
1567
+ class GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest
1568
+ include Google::Apis::Core::Hashable
1569
+
1570
+ # Required. The requests specifying the access bindings to delete. A maximum of
1571
+ # 1000 access bindings can be deleted in a batch.
1572
+ # Corresponds to the JSON property `requests`
1573
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest>]
1574
+ attr_accessor :requests
1575
+
1576
+ def initialize(**args)
1577
+ update!(**args)
1578
+ end
1579
+
1580
+ # Update properties of this object
1581
+ def update!(**args)
1582
+ @requests = args[:requests] if args.key?(:requests)
1583
+ end
1584
+ end
1585
+
1489
1586
  # Request message for BatchDeleteUserLinks RPC.
1490
1587
  class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest
1491
1588
  include Google::Apis::Core::Hashable
@@ -1506,6 +1603,25 @@ module Google
1506
1603
  end
1507
1604
  end
1508
1605
 
1606
+ # Response message for BatchGetAccessBindings RPC.
1607
+ class GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse
1608
+ include Google::Apis::Core::Hashable
1609
+
1610
+ # The requested access bindings.
1611
+ # Corresponds to the JSON property `accessBindings`
1612
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding>]
1613
+ attr_accessor :access_bindings
1614
+
1615
+ def initialize(**args)
1616
+ update!(**args)
1617
+ end
1618
+
1619
+ # Update properties of this object
1620
+ def update!(**args)
1621
+ @access_bindings = args[:access_bindings] if args.key?(:access_bindings)
1622
+ end
1623
+ end
1624
+
1509
1625
  # Response message for BatchGetUserLinks RPC.
1510
1626
  class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
1511
1627
  include Google::Apis::Core::Hashable
@@ -1525,6 +1641,45 @@ module Google
1525
1641
  end
1526
1642
  end
1527
1643
 
1644
+ # Request message for BatchUpdateAccessBindings RPC.
1645
+ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest
1646
+ include Google::Apis::Core::Hashable
1647
+
1648
+ # Required. The requests specifying the access bindings to update. A maximum of
1649
+ # 1000 access bindings can be updated in a batch.
1650
+ # Corresponds to the JSON property `requests`
1651
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest>]
1652
+ attr_accessor :requests
1653
+
1654
+ def initialize(**args)
1655
+ update!(**args)
1656
+ end
1657
+
1658
+ # Update properties of this object
1659
+ def update!(**args)
1660
+ @requests = args[:requests] if args.key?(:requests)
1661
+ end
1662
+ end
1663
+
1664
+ # Response message for BatchUpdateAccessBindings RPC.
1665
+ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse
1666
+ include Google::Apis::Core::Hashable
1667
+
1668
+ # The access bindings updated.
1669
+ # Corresponds to the JSON property `accessBindings`
1670
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding>]
1671
+ attr_accessor :access_bindings
1672
+
1673
+ def initialize(**args)
1674
+ update!(**args)
1675
+ end
1676
+
1677
+ # Update properties of this object
1678
+ def update!(**args)
1679
+ @access_bindings = args[:access_bindings] if args.key?(:access_bindings)
1680
+ end
1681
+ end
1682
+
1528
1683
  # Request message for BatchUpdateUserLinks RPC.
1529
1684
  class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest
1530
1685
  include Google::Apis::Core::Hashable
@@ -1919,6 +2074,31 @@ module Google
1919
2074
  end
1920
2075
  end
1921
2076
 
2077
+ # Request message for CreateAccessBinding RPC.
2078
+ class GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest
2079
+ include Google::Apis::Core::Hashable
2080
+
2081
+ # A binding of a user to a set of roles.
2082
+ # Corresponds to the JSON property `accessBinding`
2083
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
2084
+ attr_accessor :access_binding
2085
+
2086
+ # Required. Formats: - accounts/`account` - properties/`property`
2087
+ # Corresponds to the JSON property `parent`
2088
+ # @return [String]
2089
+ attr_accessor :parent
2090
+
2091
+ def initialize(**args)
2092
+ update!(**args)
2093
+ end
2094
+
2095
+ # Update properties of this object
2096
+ def update!(**args)
2097
+ @access_binding = args[:access_binding] if args.key?(:access_binding)
2098
+ @parent = args[:parent] if args.key?(:parent)
2099
+ end
2100
+ end
2101
+
1922
2102
  # Request message for CreateUserLink RPC. Users can have multiple email
1923
2103
  # addresses associated with their Google account, and one of these email
1924
2104
  # addresses is the "primary" email address. Any of the email addresses
@@ -2328,6 +2508,26 @@ module Google
2328
2508
  end
2329
2509
  end
2330
2510
 
2511
+ # Request message for DeleteAccessBinding RPC.
2512
+ class GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest
2513
+ include Google::Apis::Core::Hashable
2514
+
2515
+ # Required. Formats: - accounts/`account`/accessBindings/`accessBinding` -
2516
+ # properties/`property`/accessBindings/`accessBinding`
2517
+ # Corresponds to the JSON property `name`
2518
+ # @return [String]
2519
+ attr_accessor :name
2520
+
2521
+ def initialize(**args)
2522
+ update!(**args)
2523
+ end
2524
+
2525
+ # Update properties of this object
2526
+ def update!(**args)
2527
+ @name = args[:name] if args.key?(:name)
2528
+ end
2529
+ end
2530
+
2331
2531
  # Request message for DeleteUserLink RPC.
2332
2532
  class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest
2333
2533
  include Google::Apis::Core::Hashable
@@ -2923,6 +3123,33 @@ module Google
2923
3123
  end
2924
3124
  end
2925
3125
 
3126
+ # Response message for ListAccessBindings RPC.
3127
+ class GoogleAnalyticsAdminV1alphaListAccessBindingsResponse
3128
+ include Google::Apis::Core::Hashable
3129
+
3130
+ # List of AccessBindings. These will be ordered stably, but in an arbitrary
3131
+ # order.
3132
+ # Corresponds to the JSON property `accessBindings`
3133
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding>]
3134
+ attr_accessor :access_bindings
3135
+
3136
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
3137
+ # field is omitted, there are no subsequent pages.
3138
+ # Corresponds to the JSON property `nextPageToken`
3139
+ # @return [String]
3140
+ attr_accessor :next_page_token
3141
+
3142
+ def initialize(**args)
3143
+ update!(**args)
3144
+ end
3145
+
3146
+ # Update properties of this object
3147
+ def update!(**args)
3148
+ @access_bindings = args[:access_bindings] if args.key?(:access_bindings)
3149
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3150
+ end
3151
+ end
3152
+
2926
3153
  # Response message for ListAccountSummaries RPC.
2927
3154
  class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
2928
3155
  include Google::Apis::Core::Hashable
@@ -3954,6 +4181,25 @@ module Google
3954
4181
  end
3955
4182
  end
3956
4183
 
4184
+ # Request message for UpdateAccessBinding RPC.
4185
+ class GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest
4186
+ include Google::Apis::Core::Hashable
4187
+
4188
+ # A binding of a user to a set of roles.
4189
+ # Corresponds to the JSON property `accessBinding`
4190
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
4191
+ attr_accessor :access_binding
4192
+
4193
+ def initialize(**args)
4194
+ update!(**args)
4195
+ end
4196
+
4197
+ # Update properties of this object
4198
+ def update!(**args)
4199
+ @access_binding = args[:access_binding] if args.key?(:access_binding)
4200
+ end
4201
+ end
4202
+
3957
4203
  # Request message for UpdateUserLink RPC.
3958
4204
  class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
3959
4205
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AnalyticsadminV1alpha
18
18
  # Version of the google-apis-analyticsadmin_v1alpha gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230131"
25
+ REVISION = "20230203"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class GoogleAnalyticsAdminV1alphaAccessBinding
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class GoogleAnalyticsAdminV1alphaAccessDateRange
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -310,6 +316,18 @@ module Google
310
316
  include Google::Apis::Core::JsonObjectSupport
311
317
  end
312
318
 
319
+ class GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
313
331
  class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest
314
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
333
 
@@ -322,18 +340,42 @@ module Google
322
340
  include Google::Apis::Core::JsonObjectSupport
323
341
  end
324
342
 
343
+ class GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
325
349
  class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest
326
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
351
 
328
352
  include Google::Apis::Core::JsonObjectSupport
329
353
  end
330
354
 
355
+ class GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
331
361
  class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
332
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
363
 
334
364
  include Google::Apis::Core::JsonObjectSupport
335
365
  end
336
366
 
367
+ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
337
379
  class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest
338
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
381
 
@@ -382,6 +424,12 @@ module Google
382
424
  include Google::Apis::Core::JsonObjectSupport
383
425
  end
384
426
 
427
+ class GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
385
433
  class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
386
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
435
 
@@ -436,6 +484,12 @@ module Google
436
484
  include Google::Apis::Core::JsonObjectSupport
437
485
  end
438
486
 
487
+ class GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
439
493
  class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest
440
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
495
 
@@ -532,6 +586,12 @@ module Google
532
586
  include Google::Apis::Core::JsonObjectSupport
533
587
  end
534
588
 
589
+ class GoogleAnalyticsAdminV1alphaListAccessBindingsResponse
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
535
595
  class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
536
596
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
597
 
@@ -706,6 +766,12 @@ module Google
706
766
  include Google::Apis::Core::JsonObjectSupport
707
767
  end
708
768
 
769
+ class GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest
770
+ class Representation < Google::Apis::Core::JsonRepresentation; end
771
+
772
+ include Google::Apis::Core::JsonObjectSupport
773
+ end
774
+
709
775
  class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
710
776
  class Representation < Google::Apis::Core::JsonRepresentation; end
711
777
 
@@ -734,6 +800,15 @@ module Google
734
800
  end
735
801
  end
736
802
 
803
+ class GoogleAnalyticsAdminV1alphaAccessBinding
804
+ # @private
805
+ class Representation < Google::Apis::Core::JsonRepresentation
806
+ property :name, as: 'name'
807
+ collection :roles, as: 'roles'
808
+ property :user, as: 'user'
809
+ end
810
+ end
811
+
737
812
  class GoogleAnalyticsAdminV1alphaAccessDateRange
738
813
  # @private
739
814
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1171,6 +1246,22 @@ module Google
1171
1246
  end
1172
1247
  end
1173
1248
 
1249
+ class GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest
1250
+ # @private
1251
+ class Representation < Google::Apis::Core::JsonRepresentation
1252
+ collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest::Representation
1253
+
1254
+ end
1255
+ end
1256
+
1257
+ class GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse
1258
+ # @private
1259
+ class Representation < Google::Apis::Core::JsonRepresentation
1260
+ collection :access_bindings, as: 'accessBindings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1261
+
1262
+ end
1263
+ end
1264
+
1174
1265
  class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest
1175
1266
  # @private
1176
1267
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1188,6 +1279,14 @@ module Google
1188
1279
  end
1189
1280
  end
1190
1281
 
1282
+ class GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest
1283
+ # @private
1284
+ class Representation < Google::Apis::Core::JsonRepresentation
1285
+ collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest::Representation
1286
+
1287
+ end
1288
+ end
1289
+
1191
1290
  class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest
1192
1291
  # @private
1193
1292
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1196,6 +1295,14 @@ module Google
1196
1295
  end
1197
1296
  end
1198
1297
 
1298
+ class GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse
1299
+ # @private
1300
+ class Representation < Google::Apis::Core::JsonRepresentation
1301
+ collection :access_bindings, as: 'accessBindings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1302
+
1303
+ end
1304
+ end
1305
+
1199
1306
  class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
1200
1307
  # @private
1201
1308
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1204,6 +1311,22 @@ module Google
1204
1311
  end
1205
1312
  end
1206
1313
 
1314
+ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest
1315
+ # @private
1316
+ class Representation < Google::Apis::Core::JsonRepresentation
1317
+ collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest::Representation
1318
+
1319
+ end
1320
+ end
1321
+
1322
+ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse
1323
+ # @private
1324
+ class Representation < Google::Apis::Core::JsonRepresentation
1325
+ collection :access_bindings, as: 'accessBindings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1326
+
1327
+ end
1328
+ end
1329
+
1207
1330
  class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest
1208
1331
  # @private
1209
1332
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1316,6 +1439,15 @@ module Google
1316
1439
  end
1317
1440
  end
1318
1441
 
1442
+ class GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest
1443
+ # @private
1444
+ class Representation < Google::Apis::Core::JsonRepresentation
1445
+ property :access_binding, as: 'accessBinding', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1446
+
1447
+ property :parent, as: 'parent'
1448
+ end
1449
+ end
1450
+
1319
1451
  class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
1320
1452
  # @private
1321
1453
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1414,6 +1546,13 @@ module Google
1414
1546
  end
1415
1547
  end
1416
1548
 
1549
+ class GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest
1550
+ # @private
1551
+ class Representation < Google::Apis::Core::JsonRepresentation
1552
+ property :name, as: 'name'
1553
+ end
1554
+ end
1555
+
1417
1556
  class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest
1418
1557
  # @private
1419
1558
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1572,6 +1711,15 @@ module Google
1572
1711
  end
1573
1712
  end
1574
1713
 
1714
+ class GoogleAnalyticsAdminV1alphaListAccessBindingsResponse
1715
+ # @private
1716
+ class Representation < Google::Apis::Core::JsonRepresentation
1717
+ collection :access_bindings, as: 'accessBindings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1718
+
1719
+ property :next_page_token, as: 'nextPageToken'
1720
+ end
1721
+ end
1722
+
1575
1723
  class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
1576
1724
  # @private
1577
1725
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1865,6 +2013,14 @@ module Google
1865
2013
  end
1866
2014
  end
1867
2015
 
2016
+ class GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest
2017
+ # @private
2018
+ class Representation < Google::Apis::Core::JsonRepresentation
2019
+ property :access_binding, as: 'accessBinding', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
2020
+
2021
+ end
2022
+ end
2023
+
1868
2024
  class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
1869
2025
  # @private
1870
2026
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -334,6 +334,323 @@ module Google
334
334
  execute_or_queue_command(command, &block)
335
335
  end
336
336
 
337
+ # Creates information about multiple access bindings to an account or property.
338
+ # This method is transactional. If any AccessBinding cannot be created, none of
339
+ # the AccessBindings will be created.
340
+ # @param [String] parent
341
+ # Required. The account or property that owns the access bindings. The parent
342
+ # field in the CreateAccessBindingRequest messages must either be empty or match
343
+ # this field. Formats: - accounts/`account` - properties/`property`
344
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest] google_analytics_admin_v1alpha_batch_create_access_bindings_request_object
345
+ # @param [String] fields
346
+ # Selector specifying which fields to include in a partial response.
347
+ # @param [String] quota_user
348
+ # Available to use for quota purposes for server-side applications. Can be any
349
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
350
+ # @param [Google::Apis::RequestOptions] options
351
+ # Request-specific options
352
+ #
353
+ # @yield [result, err] Result & error if block supplied
354
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse] parsed result object
355
+ # @yieldparam err [StandardError] error object if request failed
356
+ #
357
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse]
358
+ #
359
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
360
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
361
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
362
+ def batch_account_access_binding_create(parent, google_analytics_admin_v1alpha_batch_create_access_bindings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
363
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings:batchCreate', options)
364
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest::Representation
365
+ command.request_object = google_analytics_admin_v1alpha_batch_create_access_bindings_request_object
366
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse::Representation
367
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse
368
+ command.params['parent'] = parent unless parent.nil?
369
+ command.query['fields'] = fields unless fields.nil?
370
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
371
+ execute_or_queue_command(command, &block)
372
+ end
373
+
374
+ # Deletes information about multiple users' links to an account or property.
375
+ # @param [String] parent
376
+ # Required. The account or property that owns the access bindings. The parent
377
+ # field in the DeleteAccessBindingRequest messages must either be empty or match
378
+ # this field. Formats: - accounts/`account` - properties/`property`
379
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest] google_analytics_admin_v1alpha_batch_delete_access_bindings_request_object
380
+ # @param [String] fields
381
+ # Selector specifying which fields to include in a partial response.
382
+ # @param [String] quota_user
383
+ # Available to use for quota purposes for server-side applications. Can be any
384
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def batch_account_access_binding_delete(parent, google_analytics_admin_v1alpha_batch_delete_access_bindings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
398
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings:batchDelete', options)
399
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest::Representation
400
+ command.request_object = google_analytics_admin_v1alpha_batch_delete_access_bindings_request_object
401
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
402
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
403
+ command.params['parent'] = parent unless parent.nil?
404
+ command.query['fields'] = fields unless fields.nil?
405
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
406
+ execute_or_queue_command(command, &block)
407
+ end
408
+
409
+ # Gets information about multiple access bindings to an account or property.
410
+ # @param [String] parent
411
+ # Required. The account or property that owns the access bindings. The parent of
412
+ # all provided values for the 'names' field must match this field. Formats: -
413
+ # accounts/`account` - properties/`property`
414
+ # @param [Array<String>, String] names
415
+ # Required. The names of the access bindings to retrieve. A maximum of 1000
416
+ # access bindings can be retrieved in a batch. Formats: - accounts/`account`/
417
+ # accessBindings/`accessBinding` - properties/`property`/accessBindings/`
418
+ # accessBinding`
419
+ # @param [String] fields
420
+ # Selector specifying which fields to include in a partial response.
421
+ # @param [String] quota_user
422
+ # Available to use for quota purposes for server-side applications. Can be any
423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
424
+ # @param [Google::Apis::RequestOptions] options
425
+ # Request-specific options
426
+ #
427
+ # @yield [result, err] Result & error if block supplied
428
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse] parsed result object
429
+ # @yieldparam err [StandardError] error object if request failed
430
+ #
431
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse]
432
+ #
433
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
434
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
435
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
436
+ def batch_account_access_binding_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
437
+ command = make_simple_command(:get, 'v1alpha/{+parent}/accessBindings:batchGet', options)
438
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse::Representation
439
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse
440
+ command.params['parent'] = parent unless parent.nil?
441
+ command.query['names'] = names unless names.nil?
442
+ command.query['fields'] = fields unless fields.nil?
443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
+ execute_or_queue_command(command, &block)
445
+ end
446
+
447
+ # Updates information about multiple access bindings to an account or property.
448
+ # @param [String] parent
449
+ # Required. The account or property that owns the access bindings. The parent
450
+ # field in the UpdateAccessBindingRequest messages must either be empty or match
451
+ # this field. Formats: - accounts/`account` - properties/`property`
452
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest] google_analytics_admin_v1alpha_batch_update_access_bindings_request_object
453
+ # @param [String] fields
454
+ # Selector specifying which fields to include in a partial response.
455
+ # @param [String] quota_user
456
+ # Available to use for quota purposes for server-side applications. Can be any
457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
458
+ # @param [Google::Apis::RequestOptions] options
459
+ # Request-specific options
460
+ #
461
+ # @yield [result, err] Result & error if block supplied
462
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse] parsed result object
463
+ # @yieldparam err [StandardError] error object if request failed
464
+ #
465
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse]
466
+ #
467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
470
+ def batch_account_access_binding_update(parent, google_analytics_admin_v1alpha_batch_update_access_bindings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
471
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings:batchUpdate', options)
472
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest::Representation
473
+ command.request_object = google_analytics_admin_v1alpha_batch_update_access_bindings_request_object
474
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse::Representation
475
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse
476
+ command.params['parent'] = parent unless parent.nil?
477
+ command.query['fields'] = fields unless fields.nil?
478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
479
+ execute_or_queue_command(command, &block)
480
+ end
481
+
482
+ # Creates an access binding on an account or property.
483
+ # @param [String] parent
484
+ # Required. Formats: - accounts/`account` - properties/`property`
485
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] google_analytics_admin_v1alpha_access_binding_object
486
+ # @param [String] fields
487
+ # Selector specifying which fields to include in a partial response.
488
+ # @param [String] quota_user
489
+ # Available to use for quota purposes for server-side applications. Can be any
490
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def create_account_access_binding(parent, google_analytics_admin_v1alpha_access_binding_object = nil, fields: nil, quota_user: nil, options: nil, &block)
504
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings', options)
505
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
506
+ command.request_object = google_analytics_admin_v1alpha_access_binding_object
507
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
508
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding
509
+ command.params['parent'] = parent unless parent.nil?
510
+ command.query['fields'] = fields unless fields.nil?
511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
515
+ # Deletes an access binding on an account or property.
516
+ # @param [String] name
517
+ # Required. Formats: - accounts/`account`/accessBindings/`accessBinding` -
518
+ # properties/`property`/accessBindings/`accessBinding`
519
+ # @param [String] fields
520
+ # Selector specifying which fields to include in a partial response.
521
+ # @param [String] quota_user
522
+ # Available to use for quota purposes for server-side applications. Can be any
523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
524
+ # @param [Google::Apis::RequestOptions] options
525
+ # Request-specific options
526
+ #
527
+ # @yield [result, err] Result & error if block supplied
528
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
529
+ # @yieldparam err [StandardError] error object if request failed
530
+ #
531
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
532
+ #
533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
536
+ def delete_account_access_binding(name, fields: nil, quota_user: nil, options: nil, &block)
537
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
538
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
539
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
540
+ command.params['name'] = name unless name.nil?
541
+ command.query['fields'] = fields unless fields.nil?
542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ execute_or_queue_command(command, &block)
544
+ end
545
+
546
+ # Gets information about an access binding.
547
+ # @param [String] name
548
+ # Required. The name of the access binding to retrieve. Formats: - accounts/`
549
+ # account`/accessBindings/`accessBinding` - properties/`property`/accessBindings/
550
+ # `accessBinding`
551
+ # @param [String] fields
552
+ # Selector specifying which fields to include in a partial response.
553
+ # @param [String] quota_user
554
+ # Available to use for quota purposes for server-side applications. Can be any
555
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
556
+ # @param [Google::Apis::RequestOptions] options
557
+ # Request-specific options
558
+ #
559
+ # @yield [result, err] Result & error if block supplied
560
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] parsed result object
561
+ # @yieldparam err [StandardError] error object if request failed
562
+ #
563
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
564
+ #
565
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
566
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
567
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
568
+ def get_account_access_binding(name, fields: nil, quota_user: nil, options: nil, &block)
569
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
570
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
571
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding
572
+ command.params['name'] = name unless name.nil?
573
+ command.query['fields'] = fields unless fields.nil?
574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ execute_or_queue_command(command, &block)
576
+ end
577
+
578
+ # Lists all access bindings on an account or property.
579
+ # @param [String] parent
580
+ # Required. Formats: - accounts/`account` - properties/`property`
581
+ # @param [Fixnum] page_size
582
+ # The maximum number of access bindings to return. The service may return fewer
583
+ # than this value. If unspecified, at most 200 access bindings will be returned.
584
+ # The maximum value is 500; values above 500 will be coerced to 500.
585
+ # @param [String] page_token
586
+ # A page token, received from a previous `ListAccessBindings` call. Provide this
587
+ # to retrieve the subsequent page. When paginating, all other parameters
588
+ # provided to `ListAccessBindings` must match the call that provided the page
589
+ # token.
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
595
+ # @param [Google::Apis::RequestOptions] options
596
+ # Request-specific options
597
+ #
598
+ # @yield [result, err] Result & error if block supplied
599
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse] parsed result object
600
+ # @yieldparam err [StandardError] error object if request failed
601
+ #
602
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse]
603
+ #
604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
607
+ def list_account_access_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
608
+ command = make_simple_command(:get, 'v1alpha/{+parent}/accessBindings', options)
609
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse::Representation
610
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse
611
+ command.params['parent'] = parent unless parent.nil?
612
+ command.query['pageSize'] = page_size unless page_size.nil?
613
+ command.query['pageToken'] = page_token unless page_token.nil?
614
+ command.query['fields'] = fields unless fields.nil?
615
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
616
+ execute_or_queue_command(command, &block)
617
+ end
618
+
619
+ # Updates an access binding on an account or property.
620
+ # @param [String] name
621
+ # Output only. Resource name of this binding. Format: accounts/`account`/
622
+ # accessBindings/`access_binding` or properties/`property`/accessBindings/`
623
+ # access_binding` Example: "accounts/100/accessBindings/200"
624
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] google_analytics_admin_v1alpha_access_binding_object
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def patch_account_access_binding(name, google_analytics_admin_v1alpha_access_binding_object = nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
644
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
645
+ command.request_object = google_analytics_admin_v1alpha_access_binding_object
646
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
647
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding
648
+ command.params['name'] = name unless name.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
337
654
  # Lists all user links on an account or property, including implicit ones that
338
655
  # come from effective permissions granted by groups or organization admin roles.
339
656
  # If a returned user link does not have direct permissions, they cannot be
@@ -1235,6 +1552,323 @@ module Google
1235
1552
  execute_or_queue_command(command, &block)
1236
1553
  end
1237
1554
 
1555
+ # Creates information about multiple access bindings to an account or property.
1556
+ # This method is transactional. If any AccessBinding cannot be created, none of
1557
+ # the AccessBindings will be created.
1558
+ # @param [String] parent
1559
+ # Required. The account or property that owns the access bindings. The parent
1560
+ # field in the CreateAccessBindingRequest messages must either be empty or match
1561
+ # this field. Formats: - accounts/`account` - properties/`property`
1562
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest] google_analytics_admin_v1alpha_batch_create_access_bindings_request_object
1563
+ # @param [String] fields
1564
+ # Selector specifying which fields to include in a partial response.
1565
+ # @param [String] quota_user
1566
+ # Available to use for quota purposes for server-side applications. Can be any
1567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1568
+ # @param [Google::Apis::RequestOptions] options
1569
+ # Request-specific options
1570
+ #
1571
+ # @yield [result, err] Result & error if block supplied
1572
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse] parsed result object
1573
+ # @yieldparam err [StandardError] error object if request failed
1574
+ #
1575
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse]
1576
+ #
1577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1580
+ def batch_property_access_binding_create(parent, google_analytics_admin_v1alpha_batch_create_access_bindings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1581
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings:batchCreate', options)
1582
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest::Representation
1583
+ command.request_object = google_analytics_admin_v1alpha_batch_create_access_bindings_request_object
1584
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse::Representation
1585
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse
1586
+ command.params['parent'] = parent unless parent.nil?
1587
+ command.query['fields'] = fields unless fields.nil?
1588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1589
+ execute_or_queue_command(command, &block)
1590
+ end
1591
+
1592
+ # Deletes information about multiple users' links to an account or property.
1593
+ # @param [String] parent
1594
+ # Required. The account or property that owns the access bindings. The parent
1595
+ # field in the DeleteAccessBindingRequest messages must either be empty or match
1596
+ # this field. Formats: - accounts/`account` - properties/`property`
1597
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest] google_analytics_admin_v1alpha_batch_delete_access_bindings_request_object
1598
+ # @param [String] fields
1599
+ # Selector specifying which fields to include in a partial response.
1600
+ # @param [String] quota_user
1601
+ # Available to use for quota purposes for server-side applications. Can be any
1602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1603
+ # @param [Google::Apis::RequestOptions] options
1604
+ # Request-specific options
1605
+ #
1606
+ # @yield [result, err] Result & error if block supplied
1607
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1608
+ # @yieldparam err [StandardError] error object if request failed
1609
+ #
1610
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1611
+ #
1612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1615
+ def batch_property_access_binding_delete(parent, google_analytics_admin_v1alpha_batch_delete_access_bindings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1616
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings:batchDelete', options)
1617
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest::Representation
1618
+ command.request_object = google_analytics_admin_v1alpha_batch_delete_access_bindings_request_object
1619
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1620
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1621
+ command.params['parent'] = parent unless parent.nil?
1622
+ command.query['fields'] = fields unless fields.nil?
1623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1624
+ execute_or_queue_command(command, &block)
1625
+ end
1626
+
1627
+ # Gets information about multiple access bindings to an account or property.
1628
+ # @param [String] parent
1629
+ # Required. The account or property that owns the access bindings. The parent of
1630
+ # all provided values for the 'names' field must match this field. Formats: -
1631
+ # accounts/`account` - properties/`property`
1632
+ # @param [Array<String>, String] names
1633
+ # Required. The names of the access bindings to retrieve. A maximum of 1000
1634
+ # access bindings can be retrieved in a batch. Formats: - accounts/`account`/
1635
+ # accessBindings/`accessBinding` - properties/`property`/accessBindings/`
1636
+ # accessBinding`
1637
+ # @param [String] fields
1638
+ # Selector specifying which fields to include in a partial response.
1639
+ # @param [String] quota_user
1640
+ # Available to use for quota purposes for server-side applications. Can be any
1641
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1642
+ # @param [Google::Apis::RequestOptions] options
1643
+ # Request-specific options
1644
+ #
1645
+ # @yield [result, err] Result & error if block supplied
1646
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse] parsed result object
1647
+ # @yieldparam err [StandardError] error object if request failed
1648
+ #
1649
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse]
1650
+ #
1651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1654
+ def batch_property_access_binding_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
1655
+ command = make_simple_command(:get, 'v1alpha/{+parent}/accessBindings:batchGet', options)
1656
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse::Representation
1657
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse
1658
+ command.params['parent'] = parent unless parent.nil?
1659
+ command.query['names'] = names unless names.nil?
1660
+ command.query['fields'] = fields unless fields.nil?
1661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1662
+ execute_or_queue_command(command, &block)
1663
+ end
1664
+
1665
+ # Updates information about multiple access bindings to an account or property.
1666
+ # @param [String] parent
1667
+ # Required. The account or property that owns the access bindings. The parent
1668
+ # field in the UpdateAccessBindingRequest messages must either be empty or match
1669
+ # this field. Formats: - accounts/`account` - properties/`property`
1670
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest] google_analytics_admin_v1alpha_batch_update_access_bindings_request_object
1671
+ # @param [String] fields
1672
+ # Selector specifying which fields to include in a partial response.
1673
+ # @param [String] quota_user
1674
+ # Available to use for quota purposes for server-side applications. Can be any
1675
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1676
+ # @param [Google::Apis::RequestOptions] options
1677
+ # Request-specific options
1678
+ #
1679
+ # @yield [result, err] Result & error if block supplied
1680
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse] parsed result object
1681
+ # @yieldparam err [StandardError] error object if request failed
1682
+ #
1683
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse]
1684
+ #
1685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1688
+ def batch_property_access_binding_update(parent, google_analytics_admin_v1alpha_batch_update_access_bindings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1689
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings:batchUpdate', options)
1690
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest::Representation
1691
+ command.request_object = google_analytics_admin_v1alpha_batch_update_access_bindings_request_object
1692
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse::Representation
1693
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse
1694
+ command.params['parent'] = parent unless parent.nil?
1695
+ command.query['fields'] = fields unless fields.nil?
1696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1697
+ execute_or_queue_command(command, &block)
1698
+ end
1699
+
1700
+ # Creates an access binding on an account or property.
1701
+ # @param [String] parent
1702
+ # Required. Formats: - accounts/`account` - properties/`property`
1703
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] google_analytics_admin_v1alpha_access_binding_object
1704
+ # @param [String] fields
1705
+ # Selector specifying which fields to include in a partial response.
1706
+ # @param [String] quota_user
1707
+ # Available to use for quota purposes for server-side applications. Can be any
1708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1709
+ # @param [Google::Apis::RequestOptions] options
1710
+ # Request-specific options
1711
+ #
1712
+ # @yield [result, err] Result & error if block supplied
1713
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] parsed result object
1714
+ # @yieldparam err [StandardError] error object if request failed
1715
+ #
1716
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
1717
+ #
1718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1721
+ def create_property_access_binding(parent, google_analytics_admin_v1alpha_access_binding_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1722
+ command = make_simple_command(:post, 'v1alpha/{+parent}/accessBindings', options)
1723
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1724
+ command.request_object = google_analytics_admin_v1alpha_access_binding_object
1725
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1726
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding
1727
+ command.params['parent'] = parent unless parent.nil?
1728
+ command.query['fields'] = fields unless fields.nil?
1729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1730
+ execute_or_queue_command(command, &block)
1731
+ end
1732
+
1733
+ # Deletes an access binding on an account or property.
1734
+ # @param [String] name
1735
+ # Required. Formats: - accounts/`account`/accessBindings/`accessBinding` -
1736
+ # properties/`property`/accessBindings/`accessBinding`
1737
+ # @param [String] fields
1738
+ # Selector specifying which fields to include in a partial response.
1739
+ # @param [String] quota_user
1740
+ # Available to use for quota purposes for server-side applications. Can be any
1741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1742
+ # @param [Google::Apis::RequestOptions] options
1743
+ # Request-specific options
1744
+ #
1745
+ # @yield [result, err] Result & error if block supplied
1746
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1747
+ # @yieldparam err [StandardError] error object if request failed
1748
+ #
1749
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1750
+ #
1751
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1752
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1753
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1754
+ def delete_property_access_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1755
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1756
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1757
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1758
+ command.params['name'] = name unless name.nil?
1759
+ command.query['fields'] = fields unless fields.nil?
1760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1761
+ execute_or_queue_command(command, &block)
1762
+ end
1763
+
1764
+ # Gets information about an access binding.
1765
+ # @param [String] name
1766
+ # Required. The name of the access binding to retrieve. Formats: - accounts/`
1767
+ # account`/accessBindings/`accessBinding` - properties/`property`/accessBindings/
1768
+ # `accessBinding`
1769
+ # @param [String] fields
1770
+ # Selector specifying which fields to include in a partial response.
1771
+ # @param [String] quota_user
1772
+ # Available to use for quota purposes for server-side applications. Can be any
1773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1774
+ # @param [Google::Apis::RequestOptions] options
1775
+ # Request-specific options
1776
+ #
1777
+ # @yield [result, err] Result & error if block supplied
1778
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] parsed result object
1779
+ # @yieldparam err [StandardError] error object if request failed
1780
+ #
1781
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
1782
+ #
1783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1786
+ def get_property_access_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1787
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1788
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1789
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding
1790
+ command.params['name'] = name unless name.nil?
1791
+ command.query['fields'] = fields unless fields.nil?
1792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1793
+ execute_or_queue_command(command, &block)
1794
+ end
1795
+
1796
+ # Lists all access bindings on an account or property.
1797
+ # @param [String] parent
1798
+ # Required. Formats: - accounts/`account` - properties/`property`
1799
+ # @param [Fixnum] page_size
1800
+ # The maximum number of access bindings to return. The service may return fewer
1801
+ # than this value. If unspecified, at most 200 access bindings will be returned.
1802
+ # The maximum value is 500; values above 500 will be coerced to 500.
1803
+ # @param [String] page_token
1804
+ # A page token, received from a previous `ListAccessBindings` call. Provide this
1805
+ # to retrieve the subsequent page. When paginating, all other parameters
1806
+ # provided to `ListAccessBindings` must match the call that provided the page
1807
+ # token.
1808
+ # @param [String] fields
1809
+ # Selector specifying which fields to include in a partial response.
1810
+ # @param [String] quota_user
1811
+ # Available to use for quota purposes for server-side applications. Can be any
1812
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1813
+ # @param [Google::Apis::RequestOptions] options
1814
+ # Request-specific options
1815
+ #
1816
+ # @yield [result, err] Result & error if block supplied
1817
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse] parsed result object
1818
+ # @yieldparam err [StandardError] error object if request failed
1819
+ #
1820
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse]
1821
+ #
1822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1825
+ def list_property_access_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1826
+ command = make_simple_command(:get, 'v1alpha/{+parent}/accessBindings', options)
1827
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse::Representation
1828
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccessBindingsResponse
1829
+ command.params['parent'] = parent unless parent.nil?
1830
+ command.query['pageSize'] = page_size unless page_size.nil?
1831
+ command.query['pageToken'] = page_token unless page_token.nil?
1832
+ command.query['fields'] = fields unless fields.nil?
1833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1834
+ execute_or_queue_command(command, &block)
1835
+ end
1836
+
1837
+ # Updates an access binding on an account or property.
1838
+ # @param [String] name
1839
+ # Output only. Resource name of this binding. Format: accounts/`account`/
1840
+ # accessBindings/`access_binding` or properties/`property`/accessBindings/`
1841
+ # access_binding` Example: "accounts/100/accessBindings/200"
1842
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] google_analytics_admin_v1alpha_access_binding_object
1843
+ # @param [String] fields
1844
+ # Selector specifying which fields to include in a partial response.
1845
+ # @param [String] quota_user
1846
+ # Available to use for quota purposes for server-side applications. Can be any
1847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1848
+ # @param [Google::Apis::RequestOptions] options
1849
+ # Request-specific options
1850
+ #
1851
+ # @yield [result, err] Result & error if block supplied
1852
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding] parsed result object
1853
+ # @yieldparam err [StandardError] error object if request failed
1854
+ #
1855
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding]
1856
+ #
1857
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1858
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1859
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1860
+ def patch_property_access_binding(name, google_analytics_admin_v1alpha_access_binding_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1861
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1862
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1863
+ command.request_object = google_analytics_admin_v1alpha_access_binding_object
1864
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding::Representation
1865
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessBinding
1866
+ command.params['name'] = name unless name.nil?
1867
+ command.query['fields'] = fields unless fields.nil?
1868
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1869
+ execute_or_queue_command(command, &block)
1870
+ end
1871
+
1238
1872
  # Archives an Audience on a property.
1239
1873
  # @param [String] name
1240
1874
  # Required. Example format: properties/1234/audiences/5678
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-analyticsadmin_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-05 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []