google-apis-analyticshub_v1 0.9.0 → 0.10.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9f18dc2f16f5a63835a09643570a7e042b676ea19c9b918231bdb6ee9e3535d
|
4
|
+
data.tar.gz: af5782dce78cdeb87984615204cc29a24d525cc71ffb89d4679a79335f36696c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d55ebcd3569088cd425b25853efbf346a4c340d292af5179c6393e499b85c964fe4f2fa3144f0fa5682448651febe683bf1e09090462c0b1619f3c566ba9c26
|
7
|
+
data.tar.gz: 272cb44b82446dab4d986e23d4285930cd6c405a87a783487d12d05bdb32a7479331b9f5e93abf687af5343de97b7f129c2d5876af22fbd5ca2cde61e0aeb05b
|
data/CHANGELOG.md
CHANGED
@@ -248,6 +248,12 @@ module Google
|
|
248
248
|
# @return [String]
|
249
249
|
attr_accessor :primary_contact
|
250
250
|
|
251
|
+
# Sharing environment is a behavior model for sharing data within a data
|
252
|
+
# exchange. This option is configurable for a data exchange.
|
253
|
+
# Corresponds to the JSON property `sharingEnvironmentConfig`
|
254
|
+
# @return [Google::Apis::AnalyticshubV1::SharingEnvironmentConfig]
|
255
|
+
attr_accessor :sharing_environment_config
|
256
|
+
|
251
257
|
def initialize(**args)
|
252
258
|
update!(**args)
|
253
259
|
end
|
@@ -261,6 +267,7 @@ module Google
|
|
261
267
|
@listing_count = args[:listing_count] if args.key?(:listing_count)
|
262
268
|
@name = args[:name] if args.key?(:name)
|
263
269
|
@primary_contact = args[:primary_contact] if args.key?(:primary_contact)
|
270
|
+
@sharing_environment_config = args[:sharing_environment_config] if args.key?(:sharing_environment_config)
|
264
271
|
end
|
265
272
|
end
|
266
273
|
|
@@ -289,6 +296,32 @@ module Google
|
|
289
296
|
end
|
290
297
|
end
|
291
298
|
|
299
|
+
# Data Clean Room (DCR), used for privacy-safe and secured data sharing.
|
300
|
+
class DcrExchangeConfig
|
301
|
+
include Google::Apis::Core::Hashable
|
302
|
+
|
303
|
+
def initialize(**args)
|
304
|
+
update!(**args)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Update properties of this object
|
308
|
+
def update!(**args)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
# Default Analytics Hub data exchange, used for secured data sharing.
|
313
|
+
class DefaultExchangeConfig
|
314
|
+
include Google::Apis::Core::Hashable
|
315
|
+
|
316
|
+
def initialize(**args)
|
317
|
+
update!(**args)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Update properties of this object
|
321
|
+
def update!(**args)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
292
325
|
# Defines the destination bigquery dataset.
|
293
326
|
class DestinationDataset
|
294
327
|
include Google::Apis::Core::Hashable
|
@@ -480,6 +513,26 @@ module Google
|
|
480
513
|
end
|
481
514
|
end
|
482
515
|
|
516
|
+
# Reference to a linked resource tracked by this Subscription.
|
517
|
+
class LinkedResource
|
518
|
+
include Google::Apis::Core::Hashable
|
519
|
+
|
520
|
+
# Output only. Name of the linked dataset, e.g. projects/subscriberproject/
|
521
|
+
# datasets/linked_dataset
|
522
|
+
# Corresponds to the JSON property `linkedDataset`
|
523
|
+
# @return [String]
|
524
|
+
attr_accessor :linked_dataset
|
525
|
+
|
526
|
+
def initialize(**args)
|
527
|
+
update!(**args)
|
528
|
+
end
|
529
|
+
|
530
|
+
# Update properties of this object
|
531
|
+
def update!(**args)
|
532
|
+
@linked_dataset = args[:linked_dataset] if args.key?(:linked_dataset)
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
483
536
|
# Message for response to the list of data exchanges.
|
484
537
|
class ListDataExchangesResponse
|
485
538
|
include Google::Apis::Core::Hashable
|
@@ -555,6 +608,56 @@ module Google
|
|
555
608
|
end
|
556
609
|
end
|
557
610
|
|
611
|
+
# Message for response to the listing of shared resource subscriptions.
|
612
|
+
class ListSharedResourceSubscriptionsResponse
|
613
|
+
include Google::Apis::Core::Hashable
|
614
|
+
|
615
|
+
# Next page token.
|
616
|
+
# Corresponds to the JSON property `nextPageToken`
|
617
|
+
# @return [String]
|
618
|
+
attr_accessor :next_page_token
|
619
|
+
|
620
|
+
# The list of subscriptions.
|
621
|
+
# Corresponds to the JSON property `sharedResourceSubscriptions`
|
622
|
+
# @return [Array<Google::Apis::AnalyticshubV1::Subscription>]
|
623
|
+
attr_accessor :shared_resource_subscriptions
|
624
|
+
|
625
|
+
def initialize(**args)
|
626
|
+
update!(**args)
|
627
|
+
end
|
628
|
+
|
629
|
+
# Update properties of this object
|
630
|
+
def update!(**args)
|
631
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
632
|
+
@shared_resource_subscriptions = args[:shared_resource_subscriptions] if args.key?(:shared_resource_subscriptions)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
# Message for response to the listing of subscriptions.
|
637
|
+
class ListSubscriptionsResponse
|
638
|
+
include Google::Apis::Core::Hashable
|
639
|
+
|
640
|
+
# Next page token.
|
641
|
+
# Corresponds to the JSON property `nextPageToken`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :next_page_token
|
644
|
+
|
645
|
+
# The list of subscriptions.
|
646
|
+
# Corresponds to the JSON property `subscriptions`
|
647
|
+
# @return [Array<Google::Apis::AnalyticshubV1::Subscription>]
|
648
|
+
attr_accessor :subscriptions
|
649
|
+
|
650
|
+
def initialize(**args)
|
651
|
+
update!(**args)
|
652
|
+
end
|
653
|
+
|
654
|
+
# Update properties of this object
|
655
|
+
def update!(**args)
|
656
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
657
|
+
@subscriptions = args[:subscriptions] if args.key?(:subscriptions)
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
558
661
|
# A listing is what gets published into a data exchange that a subscriber can
|
559
662
|
# subscribe to. It contains a reference to the data source along with
|
560
663
|
# descriptive information that will help subscribers find and subscribe the data.
|
@@ -668,6 +771,68 @@ module Google
|
|
668
771
|
end
|
669
772
|
end
|
670
773
|
|
774
|
+
# This resource represents a long-running operation that is the result of a
|
775
|
+
# network API call.
|
776
|
+
class Operation
|
777
|
+
include Google::Apis::Core::Hashable
|
778
|
+
|
779
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
780
|
+
# , the operation is completed, and either `error` or `response` is available.
|
781
|
+
# Corresponds to the JSON property `done`
|
782
|
+
# @return [Boolean]
|
783
|
+
attr_accessor :done
|
784
|
+
alias_method :done?, :done
|
785
|
+
|
786
|
+
# The `Status` type defines a logical error model that is suitable for different
|
787
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
788
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
789
|
+
# data: error code, error message, and error details. You can find out more
|
790
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
791
|
+
# //cloud.google.com/apis/design/errors).
|
792
|
+
# Corresponds to the JSON property `error`
|
793
|
+
# @return [Google::Apis::AnalyticshubV1::Status]
|
794
|
+
attr_accessor :error
|
795
|
+
|
796
|
+
# Service-specific metadata associated with the operation. It typically contains
|
797
|
+
# progress information and common metadata such as create time. Some services
|
798
|
+
# might not provide such metadata. Any method that returns a long-running
|
799
|
+
# operation should document the metadata type, if any.
|
800
|
+
# Corresponds to the JSON property `metadata`
|
801
|
+
# @return [Hash<String,Object>]
|
802
|
+
attr_accessor :metadata
|
803
|
+
|
804
|
+
# The server-assigned name, which is only unique within the same service that
|
805
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
806
|
+
# be a resource name ending with `operations/`unique_id``.
|
807
|
+
# Corresponds to the JSON property `name`
|
808
|
+
# @return [String]
|
809
|
+
attr_accessor :name
|
810
|
+
|
811
|
+
# The normal response of the operation in case of success. If the original
|
812
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
813
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
814
|
+
# the response should be the resource. For other methods, the response should
|
815
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
816
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
817
|
+
# response type is `TakeSnapshotResponse`.
|
818
|
+
# Corresponds to the JSON property `response`
|
819
|
+
# @return [Hash<String,Object>]
|
820
|
+
attr_accessor :response
|
821
|
+
|
822
|
+
def initialize(**args)
|
823
|
+
update!(**args)
|
824
|
+
end
|
825
|
+
|
826
|
+
# Update properties of this object
|
827
|
+
def update!(**args)
|
828
|
+
@done = args[:done] if args.key?(:done)
|
829
|
+
@error = args[:error] if args.key?(:error)
|
830
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
831
|
+
@name = args[:name] if args.key?(:name)
|
832
|
+
@response = args[:response] if args.key?(:response)
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
671
836
|
# Represents the metadata of the long-running operation.
|
672
837
|
class OperationMetadata
|
673
838
|
include Google::Apis::Core::Hashable
|
@@ -847,6 +1012,41 @@ module Google
|
|
847
1012
|
end
|
848
1013
|
end
|
849
1014
|
|
1015
|
+
# Message for refreshing a subscription.
|
1016
|
+
class RefreshSubscriptionRequest
|
1017
|
+
include Google::Apis::Core::Hashable
|
1018
|
+
|
1019
|
+
def initialize(**args)
|
1020
|
+
update!(**args)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Update properties of this object
|
1024
|
+
def update!(**args)
|
1025
|
+
end
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Message for response when you refresh a subscription.
|
1029
|
+
class RefreshSubscriptionResponse
|
1030
|
+
include Google::Apis::Core::Hashable
|
1031
|
+
|
1032
|
+
# A subscription represents a subscribers' access to a particular set of
|
1033
|
+
# published data. It contains references to associated listings, data exchanges,
|
1034
|
+
# and linked datasets. TODO(b/267528977) Consider port the new resource to
|
1035
|
+
# v1beta1 and dataexchange APIs.
|
1036
|
+
# Corresponds to the JSON property `subscription`
|
1037
|
+
# @return [Google::Apis::AnalyticshubV1::Subscription]
|
1038
|
+
attr_accessor :subscription
|
1039
|
+
|
1040
|
+
def initialize(**args)
|
1041
|
+
update!(**args)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Update properties of this object
|
1045
|
+
def update!(**args)
|
1046
|
+
@subscription = args[:subscription] if args.key?(:subscription)
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
850
1050
|
# Restricted export config, used to configure restricted export on linked
|
851
1051
|
# dataset.
|
852
1052
|
class RestrictedExportConfig
|
@@ -884,6 +1084,32 @@ module Google
|
|
884
1084
|
end
|
885
1085
|
end
|
886
1086
|
|
1087
|
+
# Message for revoking a subscription.
|
1088
|
+
class RevokeSubscriptionRequest
|
1089
|
+
include Google::Apis::Core::Hashable
|
1090
|
+
|
1091
|
+
def initialize(**args)
|
1092
|
+
update!(**args)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Update properties of this object
|
1096
|
+
def update!(**args)
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Message for response when you revoke a subscription.
|
1101
|
+
class RevokeSubscriptionResponse
|
1102
|
+
include Google::Apis::Core::Hashable
|
1103
|
+
|
1104
|
+
def initialize(**args)
|
1105
|
+
update!(**args)
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
# Update properties of this object
|
1109
|
+
def update!(**args)
|
1110
|
+
end
|
1111
|
+
end
|
1112
|
+
|
887
1113
|
# Request message for `SetIamPolicy` method.
|
888
1114
|
class SetIamPolicyRequest
|
889
1115
|
include Google::Apis::Core::Hashable
|
@@ -937,6 +1163,125 @@ module Google
|
|
937
1163
|
end
|
938
1164
|
end
|
939
1165
|
|
1166
|
+
# Sharing environment is a behavior model for sharing data within a data
|
1167
|
+
# exchange. This option is configurable for a data exchange.
|
1168
|
+
class SharingEnvironmentConfig
|
1169
|
+
include Google::Apis::Core::Hashable
|
1170
|
+
|
1171
|
+
# Data Clean Room (DCR), used for privacy-safe and secured data sharing.
|
1172
|
+
# Corresponds to the JSON property `dcrExchangeConfig`
|
1173
|
+
# @return [Google::Apis::AnalyticshubV1::DcrExchangeConfig]
|
1174
|
+
attr_accessor :dcr_exchange_config
|
1175
|
+
|
1176
|
+
# Default Analytics Hub data exchange, used for secured data sharing.
|
1177
|
+
# Corresponds to the JSON property `defaultExchangeConfig`
|
1178
|
+
# @return [Google::Apis::AnalyticshubV1::DefaultExchangeConfig]
|
1179
|
+
attr_accessor :default_exchange_config
|
1180
|
+
|
1181
|
+
def initialize(**args)
|
1182
|
+
update!(**args)
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# Update properties of this object
|
1186
|
+
def update!(**args)
|
1187
|
+
@dcr_exchange_config = args[:dcr_exchange_config] if args.key?(:dcr_exchange_config)
|
1188
|
+
@default_exchange_config = args[:default_exchange_config] if args.key?(:default_exchange_config)
|
1189
|
+
end
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1193
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1194
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
1195
|
+
# data: error code, error message, and error details. You can find out more
|
1196
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
1197
|
+
# //cloud.google.com/apis/design/errors).
|
1198
|
+
class Status
|
1199
|
+
include Google::Apis::Core::Hashable
|
1200
|
+
|
1201
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1202
|
+
# Corresponds to the JSON property `code`
|
1203
|
+
# @return [Fixnum]
|
1204
|
+
attr_accessor :code
|
1205
|
+
|
1206
|
+
# A list of messages that carry the error details. There is a common set of
|
1207
|
+
# message types for APIs to use.
|
1208
|
+
# Corresponds to the JSON property `details`
|
1209
|
+
# @return [Array<Hash<String,Object>>]
|
1210
|
+
attr_accessor :details
|
1211
|
+
|
1212
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1213
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1214
|
+
# field, or localized by the client.
|
1215
|
+
# Corresponds to the JSON property `message`
|
1216
|
+
# @return [String]
|
1217
|
+
attr_accessor :message
|
1218
|
+
|
1219
|
+
def initialize(**args)
|
1220
|
+
update!(**args)
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
# Update properties of this object
|
1224
|
+
def update!(**args)
|
1225
|
+
@code = args[:code] if args.key?(:code)
|
1226
|
+
@details = args[:details] if args.key?(:details)
|
1227
|
+
@message = args[:message] if args.key?(:message)
|
1228
|
+
end
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# Message for subscribing to a Data Exchange.
|
1232
|
+
class SubscribeDataExchangeRequest
|
1233
|
+
include Google::Apis::Core::Hashable
|
1234
|
+
|
1235
|
+
# Required. The parent resource path of the Subscription. e.g. `projects/
|
1236
|
+
# subscriberproject/locations/US`
|
1237
|
+
# Corresponds to the JSON property `destination`
|
1238
|
+
# @return [String]
|
1239
|
+
attr_accessor :destination
|
1240
|
+
|
1241
|
+
# Email of the subscriber.
|
1242
|
+
# Corresponds to the JSON property `subscriberContact`
|
1243
|
+
# @return [String]
|
1244
|
+
attr_accessor :subscriber_contact
|
1245
|
+
|
1246
|
+
# Required. Name of the subscription to create. e.g. `subscription1`
|
1247
|
+
# Corresponds to the JSON property `subscription`
|
1248
|
+
# @return [String]
|
1249
|
+
attr_accessor :subscription
|
1250
|
+
|
1251
|
+
def initialize(**args)
|
1252
|
+
update!(**args)
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# Update properties of this object
|
1256
|
+
def update!(**args)
|
1257
|
+
@destination = args[:destination] if args.key?(:destination)
|
1258
|
+
@subscriber_contact = args[:subscriber_contact] if args.key?(:subscriber_contact)
|
1259
|
+
@subscription = args[:subscription] if args.key?(:subscription)
|
1260
|
+
end
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
# Message for response when you subscribe to a Data Exchange.
|
1264
|
+
class SubscribeDataExchangeResponse
|
1265
|
+
include Google::Apis::Core::Hashable
|
1266
|
+
|
1267
|
+
# A subscription represents a subscribers' access to a particular set of
|
1268
|
+
# published data. It contains references to associated listings, data exchanges,
|
1269
|
+
# and linked datasets. TODO(b/267528977) Consider port the new resource to
|
1270
|
+
# v1beta1 and dataexchange APIs.
|
1271
|
+
# Corresponds to the JSON property `subscription`
|
1272
|
+
# @return [Google::Apis::AnalyticshubV1::Subscription]
|
1273
|
+
attr_accessor :subscription
|
1274
|
+
|
1275
|
+
def initialize(**args)
|
1276
|
+
update!(**args)
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
# Update properties of this object
|
1280
|
+
def update!(**args)
|
1281
|
+
@subscription = args[:subscription] if args.key?(:subscription)
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
|
940
1285
|
# Message for subscribing to a listing.
|
941
1286
|
class SubscribeListingRequest
|
942
1287
|
include Google::Apis::Core::Hashable
|
@@ -960,12 +1305,103 @@ module Google
|
|
960
1305
|
class SubscribeListingResponse
|
961
1306
|
include Google::Apis::Core::Hashable
|
962
1307
|
|
1308
|
+
# A subscription represents a subscribers' access to a particular set of
|
1309
|
+
# published data. It contains references to associated listings, data exchanges,
|
1310
|
+
# and linked datasets. TODO(b/267528977) Consider port the new resource to
|
1311
|
+
# v1beta1 and dataexchange APIs.
|
1312
|
+
# Corresponds to the JSON property `subscription`
|
1313
|
+
# @return [Google::Apis::AnalyticshubV1::Subscription]
|
1314
|
+
attr_accessor :subscription
|
1315
|
+
|
1316
|
+
def initialize(**args)
|
1317
|
+
update!(**args)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
# Update properties of this object
|
1321
|
+
def update!(**args)
|
1322
|
+
@subscription = args[:subscription] if args.key?(:subscription)
|
1323
|
+
end
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
# A subscription represents a subscribers' access to a particular set of
|
1327
|
+
# published data. It contains references to associated listings, data exchanges,
|
1328
|
+
# and linked datasets. TODO(b/267528977) Consider port the new resource to
|
1329
|
+
# v1beta1 and dataexchange APIs.
|
1330
|
+
class Subscription
|
1331
|
+
include Google::Apis::Core::Hashable
|
1332
|
+
|
1333
|
+
# Output only. Timestamp when the subscription was created.
|
1334
|
+
# Corresponds to the JSON property `creationTime`
|
1335
|
+
# @return [String]
|
1336
|
+
attr_accessor :creation_time
|
1337
|
+
|
1338
|
+
# Output only. Resource name of the source Data Exchange. e.g. projects/123/
|
1339
|
+
# locations/US/dataExchanges/456
|
1340
|
+
# Corresponds to the JSON property `dataExchange`
|
1341
|
+
# @return [String]
|
1342
|
+
attr_accessor :data_exchange
|
1343
|
+
|
1344
|
+
# Output only. Timestamp when the subscription was last modified.
|
1345
|
+
# Corresponds to the JSON property `lastModifyTime`
|
1346
|
+
# @return [String]
|
1347
|
+
attr_accessor :last_modify_time
|
1348
|
+
|
1349
|
+
# Output only. Map of listing resource names to associated linked resource, e.g.
|
1350
|
+
# projects/123/locations/US/dataExchanges/456/listings/789 -> projects/123/
|
1351
|
+
# datasets/my_dataset For listing-level subscriptions, this is a map of size 1.
|
1352
|
+
# Only contains values if state == STATE_ACTIVE.
|
1353
|
+
# Corresponds to the JSON property `linkedDatasetMap`
|
1354
|
+
# @return [Hash<String,Google::Apis::AnalyticshubV1::LinkedResource>]
|
1355
|
+
attr_accessor :linked_dataset_map
|
1356
|
+
|
1357
|
+
# Output only. Resource name of the source Listing. e.g. projects/123/locations/
|
1358
|
+
# US/dataExchanges/456/listings/789
|
1359
|
+
# Corresponds to the JSON property `listing`
|
1360
|
+
# @return [String]
|
1361
|
+
attr_accessor :listing
|
1362
|
+
|
1363
|
+
# Output only. The resource name of the subscription. e.g. `projects/myproject/
|
1364
|
+
# locations/US/subscriptions/123`.
|
1365
|
+
# Corresponds to the JSON property `name`
|
1366
|
+
# @return [String]
|
1367
|
+
attr_accessor :name
|
1368
|
+
|
1369
|
+
# Output only. Display name of the project of this subscription.
|
1370
|
+
# Corresponds to the JSON property `organizationDisplayName`
|
1371
|
+
# @return [String]
|
1372
|
+
attr_accessor :organization_display_name
|
1373
|
+
|
1374
|
+
# Output only. Organization of the project this subscription belongs to.
|
1375
|
+
# Corresponds to the JSON property `organizationId`
|
1376
|
+
# @return [String]
|
1377
|
+
attr_accessor :organization_id
|
1378
|
+
|
1379
|
+
# Output only. Current state of the subscription.
|
1380
|
+
# Corresponds to the JSON property `state`
|
1381
|
+
# @return [String]
|
1382
|
+
attr_accessor :state
|
1383
|
+
|
1384
|
+
# Output only. Email of the subscriber.
|
1385
|
+
# Corresponds to the JSON property `subscriberContact`
|
1386
|
+
# @return [String]
|
1387
|
+
attr_accessor :subscriber_contact
|
1388
|
+
|
963
1389
|
def initialize(**args)
|
964
1390
|
update!(**args)
|
965
1391
|
end
|
966
1392
|
|
967
1393
|
# Update properties of this object
|
968
1394
|
def update!(**args)
|
1395
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
1396
|
+
@data_exchange = args[:data_exchange] if args.key?(:data_exchange)
|
1397
|
+
@last_modify_time = args[:last_modify_time] if args.key?(:last_modify_time)
|
1398
|
+
@linked_dataset_map = args[:linked_dataset_map] if args.key?(:linked_dataset_map)
|
1399
|
+
@listing = args[:listing] if args.key?(:listing)
|
1400
|
+
@name = args[:name] if args.key?(:name)
|
1401
|
+
@organization_display_name = args[:organization_display_name] if args.key?(:organization_display_name)
|
1402
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
1403
|
+
@state = args[:state] if args.key?(:state)
|
1404
|
+
@subscriber_contact = args[:subscriber_contact] if args.key?(:subscriber_contact)
|
969
1405
|
end
|
970
1406
|
end
|
971
1407
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AnalyticshubV1
|
18
18
|
# Version of the google-apis-analyticshub_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230803"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -58,6 +58,18 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
+
class DcrExchangeConfig
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class DefaultExchangeConfig
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
61
73
|
class DestinationDataset
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
75
|
|
@@ -94,6 +106,12 @@ module Google
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class LinkedResource
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class ListDataExchangesResponse
|
98
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
117
|
|
@@ -112,12 +130,30 @@ module Google
|
|
112
130
|
include Google::Apis::Core::JsonObjectSupport
|
113
131
|
end
|
114
132
|
|
133
|
+
class ListSharedResourceSubscriptionsResponse
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class ListSubscriptionsResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
115
145
|
class Listing
|
116
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
147
|
|
118
148
|
include Google::Apis::Core::JsonObjectSupport
|
119
149
|
end
|
120
150
|
|
151
|
+
class Operation
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
121
157
|
class OperationMetadata
|
122
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
159
|
|
@@ -136,18 +172,66 @@ module Google
|
|
136
172
|
include Google::Apis::Core::JsonObjectSupport
|
137
173
|
end
|
138
174
|
|
175
|
+
class RefreshSubscriptionRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class RefreshSubscriptionResponse
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
139
187
|
class RestrictedExportConfig
|
140
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
189
|
|
142
190
|
include Google::Apis::Core::JsonObjectSupport
|
143
191
|
end
|
144
192
|
|
193
|
+
class RevokeSubscriptionRequest
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class RevokeSubscriptionResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
145
205
|
class SetIamPolicyRequest
|
146
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
207
|
|
148
208
|
include Google::Apis::Core::JsonObjectSupport
|
149
209
|
end
|
150
210
|
|
211
|
+
class SharingEnvironmentConfig
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class Status
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class SubscribeDataExchangeRequest
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class SubscribeDataExchangeResponse
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
151
235
|
class SubscribeListingRequest
|
152
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
237
|
|
@@ -160,6 +244,12 @@ module Google
|
|
160
244
|
include Google::Apis::Core::JsonObjectSupport
|
161
245
|
end
|
162
246
|
|
247
|
+
class Subscription
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
163
253
|
class TestIamPermissionsRequest
|
164
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
255
|
|
@@ -216,6 +306,8 @@ module Google
|
|
216
306
|
property :listing_count, as: 'listingCount'
|
217
307
|
property :name, as: 'name'
|
218
308
|
property :primary_contact, as: 'primaryContact'
|
309
|
+
property :sharing_environment_config, as: 'sharingEnvironmentConfig', class: Google::Apis::AnalyticshubV1::SharingEnvironmentConfig, decorator: Google::Apis::AnalyticshubV1::SharingEnvironmentConfig::Representation
|
310
|
+
|
219
311
|
end
|
220
312
|
end
|
221
313
|
|
@@ -227,6 +319,18 @@ module Google
|
|
227
319
|
end
|
228
320
|
end
|
229
321
|
|
322
|
+
class DcrExchangeConfig
|
323
|
+
# @private
|
324
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
class DefaultExchangeConfig
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
230
334
|
class DestinationDataset
|
231
335
|
# @private
|
232
336
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -278,6 +382,13 @@ module Google
|
|
278
382
|
end
|
279
383
|
end
|
280
384
|
|
385
|
+
class LinkedResource
|
386
|
+
# @private
|
387
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
388
|
+
property :linked_dataset, as: 'linkedDataset'
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
281
392
|
class ListDataExchangesResponse
|
282
393
|
# @private
|
283
394
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -305,6 +416,24 @@ module Google
|
|
305
416
|
end
|
306
417
|
end
|
307
418
|
|
419
|
+
class ListSharedResourceSubscriptionsResponse
|
420
|
+
# @private
|
421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
422
|
+
property :next_page_token, as: 'nextPageToken'
|
423
|
+
collection :shared_resource_subscriptions, as: 'sharedResourceSubscriptions', class: Google::Apis::AnalyticshubV1::Subscription, decorator: Google::Apis::AnalyticshubV1::Subscription::Representation
|
424
|
+
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
class ListSubscriptionsResponse
|
429
|
+
# @private
|
430
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
431
|
+
property :next_page_token, as: 'nextPageToken'
|
432
|
+
collection :subscriptions, as: 'subscriptions', class: Google::Apis::AnalyticshubV1::Subscription, decorator: Google::Apis::AnalyticshubV1::Subscription::Representation
|
433
|
+
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
308
437
|
class Listing
|
309
438
|
# @private
|
310
439
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -328,6 +457,18 @@ module Google
|
|
328
457
|
end
|
329
458
|
end
|
330
459
|
|
460
|
+
class Operation
|
461
|
+
# @private
|
462
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
463
|
+
property :done, as: 'done'
|
464
|
+
property :error, as: 'error', class: Google::Apis::AnalyticshubV1::Status, decorator: Google::Apis::AnalyticshubV1::Status::Representation
|
465
|
+
|
466
|
+
hash :metadata, as: 'metadata'
|
467
|
+
property :name, as: 'name'
|
468
|
+
hash :response, as: 'response'
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
331
472
|
class OperationMetadata
|
332
473
|
# @private
|
333
474
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -361,6 +502,20 @@ module Google
|
|
361
502
|
end
|
362
503
|
end
|
363
504
|
|
505
|
+
class RefreshSubscriptionRequest
|
506
|
+
# @private
|
507
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
508
|
+
end
|
509
|
+
end
|
510
|
+
|
511
|
+
class RefreshSubscriptionResponse
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :subscription, as: 'subscription', class: Google::Apis::AnalyticshubV1::Subscription, decorator: Google::Apis::AnalyticshubV1::Subscription::Representation
|
515
|
+
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
364
519
|
class RestrictedExportConfig
|
365
520
|
# @private
|
366
521
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -370,6 +525,18 @@ module Google
|
|
370
525
|
end
|
371
526
|
end
|
372
527
|
|
528
|
+
class RevokeSubscriptionRequest
|
529
|
+
# @private
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
class RevokeSubscriptionResponse
|
535
|
+
# @private
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
373
540
|
class SetIamPolicyRequest
|
374
541
|
# @private
|
375
542
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -379,6 +546,42 @@ module Google
|
|
379
546
|
end
|
380
547
|
end
|
381
548
|
|
549
|
+
class SharingEnvironmentConfig
|
550
|
+
# @private
|
551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
+
property :dcr_exchange_config, as: 'dcrExchangeConfig', class: Google::Apis::AnalyticshubV1::DcrExchangeConfig, decorator: Google::Apis::AnalyticshubV1::DcrExchangeConfig::Representation
|
553
|
+
|
554
|
+
property :default_exchange_config, as: 'defaultExchangeConfig', class: Google::Apis::AnalyticshubV1::DefaultExchangeConfig, decorator: Google::Apis::AnalyticshubV1::DefaultExchangeConfig::Representation
|
555
|
+
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
class Status
|
560
|
+
# @private
|
561
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
562
|
+
property :code, as: 'code'
|
563
|
+
collection :details, as: 'details'
|
564
|
+
property :message, as: 'message'
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
class SubscribeDataExchangeRequest
|
569
|
+
# @private
|
570
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
571
|
+
property :destination, as: 'destination'
|
572
|
+
property :subscriber_contact, as: 'subscriberContact'
|
573
|
+
property :subscription, as: 'subscription'
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
class SubscribeDataExchangeResponse
|
578
|
+
# @private
|
579
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
580
|
+
property :subscription, as: 'subscription', class: Google::Apis::AnalyticshubV1::Subscription, decorator: Google::Apis::AnalyticshubV1::Subscription::Representation
|
581
|
+
|
582
|
+
end
|
583
|
+
end
|
584
|
+
|
382
585
|
class SubscribeListingRequest
|
383
586
|
# @private
|
384
587
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -390,6 +593,25 @@ module Google
|
|
390
593
|
class SubscribeListingResponse
|
391
594
|
# @private
|
392
595
|
class Representation < Google::Apis::Core::JsonRepresentation
|
596
|
+
property :subscription, as: 'subscription', class: Google::Apis::AnalyticshubV1::Subscription, decorator: Google::Apis::AnalyticshubV1::Subscription::Representation
|
597
|
+
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
601
|
+
class Subscription
|
602
|
+
# @private
|
603
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
604
|
+
property :creation_time, as: 'creationTime'
|
605
|
+
property :data_exchange, as: 'dataExchange'
|
606
|
+
property :last_modify_time, as: 'lastModifyTime'
|
607
|
+
hash :linked_dataset_map, as: 'linkedDatasetMap', class: Google::Apis::AnalyticshubV1::LinkedResource, decorator: Google::Apis::AnalyticshubV1::LinkedResource::Representation
|
608
|
+
|
609
|
+
property :listing, as: 'listing'
|
610
|
+
property :name, as: 'name'
|
611
|
+
property :organization_display_name, as: 'organizationDisplayName'
|
612
|
+
property :organization_id, as: 'organizationId'
|
613
|
+
property :state, as: 'state'
|
614
|
+
property :subscriber_contact, as: 'subscriberContact'
|
393
615
|
end
|
394
616
|
end
|
395
617
|
|
@@ -261,6 +261,48 @@ module Google
|
|
261
261
|
execute_or_queue_command(command, &block)
|
262
262
|
end
|
263
263
|
|
264
|
+
# Lists all subscriptions on a given Data Exchange or Listing.
|
265
|
+
# @param [String] resource
|
266
|
+
# Required. Resource name of the requested target. This resource may be either a
|
267
|
+
# Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR
|
268
|
+
# e.g. projects/123/locations/US/dataExchanges/456/listings/789
|
269
|
+
# @param [Boolean] include_deleted_subscriptions
|
270
|
+
# If selected, includes deleted subscriptions in the response (up to 63 days
|
271
|
+
# after deletion).
|
272
|
+
# @param [Fixnum] page_size
|
273
|
+
# The maximum number of results to return in a single response page.
|
274
|
+
# @param [String] page_token
|
275
|
+
# Page token, returned by a previous call.
|
276
|
+
# @param [String] fields
|
277
|
+
# Selector specifying which fields to include in a partial response.
|
278
|
+
# @param [String] quota_user
|
279
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
280
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
281
|
+
# @param [Google::Apis::RequestOptions] options
|
282
|
+
# Request-specific options
|
283
|
+
#
|
284
|
+
# @yield [result, err] Result & error if block supplied
|
285
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse] parsed result object
|
286
|
+
# @yieldparam err [StandardError] error object if request failed
|
287
|
+
#
|
288
|
+
# @return [Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse]
|
289
|
+
#
|
290
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
291
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
292
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
293
|
+
def list_project_location_data_exchange_subscriptions(resource, include_deleted_subscriptions: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
294
|
+
command = make_simple_command(:get, 'v1/{+resource}:listSubscriptions', options)
|
295
|
+
command.response_representation = Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse::Representation
|
296
|
+
command.response_class = Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse
|
297
|
+
command.params['resource'] = resource unless resource.nil?
|
298
|
+
command.query['includeDeletedSubscriptions'] = include_deleted_subscriptions unless include_deleted_subscriptions.nil?
|
299
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
300
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
301
|
+
command.query['fields'] = fields unless fields.nil?
|
302
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
303
|
+
execute_or_queue_command(command, &block)
|
304
|
+
end
|
305
|
+
|
264
306
|
# Updates an existing data exchange.
|
265
307
|
# @param [String] name
|
266
308
|
# Output only. The resource name of the data exchange. e.g. `projects/myproject/
|
@@ -335,6 +377,41 @@ module Google
|
|
335
377
|
execute_or_queue_command(command, &block)
|
336
378
|
end
|
337
379
|
|
380
|
+
# Creates a Subscription to a Data Exchange. This is a long-running operation as
|
381
|
+
# it will create one or more linked datasets.
|
382
|
+
# @param [String] name
|
383
|
+
# Required. Resource name of the Data Exchange. e.g. `projects/publisherproject/
|
384
|
+
# locations/US/dataExchanges/123`
|
385
|
+
# @param [Google::Apis::AnalyticshubV1::SubscribeDataExchangeRequest] subscribe_data_exchange_request_object
|
386
|
+
# @param [String] fields
|
387
|
+
# Selector specifying which fields to include in a partial response.
|
388
|
+
# @param [String] quota_user
|
389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
391
|
+
# @param [Google::Apis::RequestOptions] options
|
392
|
+
# Request-specific options
|
393
|
+
#
|
394
|
+
# @yield [result, err] Result & error if block supplied
|
395
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::Operation] parsed result object
|
396
|
+
# @yieldparam err [StandardError] error object if request failed
|
397
|
+
#
|
398
|
+
# @return [Google::Apis::AnalyticshubV1::Operation]
|
399
|
+
#
|
400
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
401
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
402
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
403
|
+
def subscribe_data_exchange(name, subscribe_data_exchange_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
404
|
+
command = make_simple_command(:post, 'v1/{+name}:subscribe', options)
|
405
|
+
command.request_representation = Google::Apis::AnalyticshubV1::SubscribeDataExchangeRequest::Representation
|
406
|
+
command.request_object = subscribe_data_exchange_request_object
|
407
|
+
command.response_representation = Google::Apis::AnalyticshubV1::Operation::Representation
|
408
|
+
command.response_class = Google::Apis::AnalyticshubV1::Operation
|
409
|
+
command.params['name'] = name unless name.nil?
|
410
|
+
command.query['fields'] = fields unless fields.nil?
|
411
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
412
|
+
execute_or_queue_command(command, &block)
|
413
|
+
end
|
414
|
+
|
338
415
|
# Returns the permissions that a caller has.
|
339
416
|
# @param [String] resource
|
340
417
|
# REQUIRED: The resource for which the policy detail is being requested. See [
|
@@ -544,6 +621,48 @@ module Google
|
|
544
621
|
execute_or_queue_command(command, &block)
|
545
622
|
end
|
546
623
|
|
624
|
+
# Lists all subscriptions on a given Data Exchange or Listing.
|
625
|
+
# @param [String] resource
|
626
|
+
# Required. Resource name of the requested target. This resource may be either a
|
627
|
+
# Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR
|
628
|
+
# e.g. projects/123/locations/US/dataExchanges/456/listings/789
|
629
|
+
# @param [Boolean] include_deleted_subscriptions
|
630
|
+
# If selected, includes deleted subscriptions in the response (up to 63 days
|
631
|
+
# after deletion).
|
632
|
+
# @param [Fixnum] page_size
|
633
|
+
# The maximum number of results to return in a single response page.
|
634
|
+
# @param [String] page_token
|
635
|
+
# Page token, returned by a previous call.
|
636
|
+
# @param [String] fields
|
637
|
+
# Selector specifying which fields to include in a partial response.
|
638
|
+
# @param [String] quota_user
|
639
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
640
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
641
|
+
# @param [Google::Apis::RequestOptions] options
|
642
|
+
# Request-specific options
|
643
|
+
#
|
644
|
+
# @yield [result, err] Result & error if block supplied
|
645
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse] parsed result object
|
646
|
+
# @yieldparam err [StandardError] error object if request failed
|
647
|
+
#
|
648
|
+
# @return [Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse]
|
649
|
+
#
|
650
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
651
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
652
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
653
|
+
def list_project_location_data_exchange_listing_subscriptions(resource, include_deleted_subscriptions: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
654
|
+
command = make_simple_command(:get, 'v1/{+resource}:listSubscriptions', options)
|
655
|
+
command.response_representation = Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse::Representation
|
656
|
+
command.response_class = Google::Apis::AnalyticshubV1::ListSharedResourceSubscriptionsResponse
|
657
|
+
command.params['resource'] = resource unless resource.nil?
|
658
|
+
command.query['includeDeletedSubscriptions'] = include_deleted_subscriptions unless include_deleted_subscriptions.nil?
|
659
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
660
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
661
|
+
command.query['fields'] = fields unless fields.nil?
|
662
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
663
|
+
execute_or_queue_command(command, &block)
|
664
|
+
end
|
665
|
+
|
547
666
|
# Updates an existing listing.
|
548
667
|
# @param [String] name
|
549
668
|
# Output only. The resource name of the listing. e.g. `projects/myproject/
|
@@ -689,6 +808,178 @@ module Google
|
|
689
808
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
690
809
|
execute_or_queue_command(command, &block)
|
691
810
|
end
|
811
|
+
|
812
|
+
# Deletes a subscription.
|
813
|
+
# @param [String] name
|
814
|
+
# Required. Resource name of the subscription to delete. e.g. projects/123/
|
815
|
+
# locations/US/subscriptions/456
|
816
|
+
# @param [String] fields
|
817
|
+
# Selector specifying which fields to include in a partial response.
|
818
|
+
# @param [String] quota_user
|
819
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
820
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
821
|
+
# @param [Google::Apis::RequestOptions] options
|
822
|
+
# Request-specific options
|
823
|
+
#
|
824
|
+
# @yield [result, err] Result & error if block supplied
|
825
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::Operation] parsed result object
|
826
|
+
# @yieldparam err [StandardError] error object if request failed
|
827
|
+
#
|
828
|
+
# @return [Google::Apis::AnalyticshubV1::Operation]
|
829
|
+
#
|
830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
833
|
+
def delete_project_location_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
|
834
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
835
|
+
command.response_representation = Google::Apis::AnalyticshubV1::Operation::Representation
|
836
|
+
command.response_class = Google::Apis::AnalyticshubV1::Operation
|
837
|
+
command.params['name'] = name unless name.nil?
|
838
|
+
command.query['fields'] = fields unless fields.nil?
|
839
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
840
|
+
execute_or_queue_command(command, &block)
|
841
|
+
end
|
842
|
+
|
843
|
+
# Gets the details of a Subscription.
|
844
|
+
# @param [String] name
|
845
|
+
# Required. Resource name of the subscription. e.g. projects/123/locations/US/
|
846
|
+
# subscriptions/456
|
847
|
+
# @param [String] fields
|
848
|
+
# Selector specifying which fields to include in a partial response.
|
849
|
+
# @param [String] quota_user
|
850
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
851
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
852
|
+
# @param [Google::Apis::RequestOptions] options
|
853
|
+
# Request-specific options
|
854
|
+
#
|
855
|
+
# @yield [result, err] Result & error if block supplied
|
856
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::Subscription] parsed result object
|
857
|
+
# @yieldparam err [StandardError] error object if request failed
|
858
|
+
#
|
859
|
+
# @return [Google::Apis::AnalyticshubV1::Subscription]
|
860
|
+
#
|
861
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
862
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
863
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
864
|
+
def get_project_location_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
|
865
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
866
|
+
command.response_representation = Google::Apis::AnalyticshubV1::Subscription::Representation
|
867
|
+
command.response_class = Google::Apis::AnalyticshubV1::Subscription
|
868
|
+
command.params['name'] = name unless name.nil?
|
869
|
+
command.query['fields'] = fields unless fields.nil?
|
870
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
871
|
+
execute_or_queue_command(command, &block)
|
872
|
+
end
|
873
|
+
|
874
|
+
# Lists all subscriptions in a given project and location.
|
875
|
+
# @param [String] parent
|
876
|
+
# Required. The parent resource path of the subscription. e.g. projects/
|
877
|
+
# myproject/locations/US
|
878
|
+
# @param [String] filter
|
879
|
+
# The filter expression may be used to filter by Data Exchange or Listing.
|
880
|
+
# @param [Fixnum] page_size
|
881
|
+
# The maximum number of results to return in a single response page.
|
882
|
+
# @param [String] page_token
|
883
|
+
# Page token, returned by a previous call.
|
884
|
+
# @param [String] fields
|
885
|
+
# Selector specifying which fields to include in a partial response.
|
886
|
+
# @param [String] quota_user
|
887
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
888
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
889
|
+
# @param [Google::Apis::RequestOptions] options
|
890
|
+
# Request-specific options
|
891
|
+
#
|
892
|
+
# @yield [result, err] Result & error if block supplied
|
893
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::ListSubscriptionsResponse] parsed result object
|
894
|
+
# @yieldparam err [StandardError] error object if request failed
|
895
|
+
#
|
896
|
+
# @return [Google::Apis::AnalyticshubV1::ListSubscriptionsResponse]
|
897
|
+
#
|
898
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
899
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
900
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
901
|
+
def list_project_location_subscriptions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
902
|
+
command = make_simple_command(:get, 'v1/{+parent}/subscriptions', options)
|
903
|
+
command.response_representation = Google::Apis::AnalyticshubV1::ListSubscriptionsResponse::Representation
|
904
|
+
command.response_class = Google::Apis::AnalyticshubV1::ListSubscriptionsResponse
|
905
|
+
command.params['parent'] = parent unless parent.nil?
|
906
|
+
command.query['filter'] = filter unless filter.nil?
|
907
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
908
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
909
|
+
command.query['fields'] = fields unless fields.nil?
|
910
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
911
|
+
execute_or_queue_command(command, &block)
|
912
|
+
end
|
913
|
+
|
914
|
+
# Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale
|
915
|
+
# when a publisher adds or removes data. This is a long-running operation as it
|
916
|
+
# may create many linked datasets.
|
917
|
+
# @param [String] name
|
918
|
+
# Required. Resource name of the Subscription to refresh. e.g. `projects/
|
919
|
+
# subscriberproject/locations/US/subscriptions/123`
|
920
|
+
# @param [Google::Apis::AnalyticshubV1::RefreshSubscriptionRequest] refresh_subscription_request_object
|
921
|
+
# @param [String] fields
|
922
|
+
# Selector specifying which fields to include in a partial response.
|
923
|
+
# @param [String] quota_user
|
924
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
925
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
926
|
+
# @param [Google::Apis::RequestOptions] options
|
927
|
+
# Request-specific options
|
928
|
+
#
|
929
|
+
# @yield [result, err] Result & error if block supplied
|
930
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::Operation] parsed result object
|
931
|
+
# @yieldparam err [StandardError] error object if request failed
|
932
|
+
#
|
933
|
+
# @return [Google::Apis::AnalyticshubV1::Operation]
|
934
|
+
#
|
935
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
936
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
937
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
938
|
+
def refresh_subscription(name, refresh_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
939
|
+
command = make_simple_command(:post, 'v1/{+name}:refresh', options)
|
940
|
+
command.request_representation = Google::Apis::AnalyticshubV1::RefreshSubscriptionRequest::Representation
|
941
|
+
command.request_object = refresh_subscription_request_object
|
942
|
+
command.response_representation = Google::Apis::AnalyticshubV1::Operation::Representation
|
943
|
+
command.response_class = Google::Apis::AnalyticshubV1::Operation
|
944
|
+
command.params['name'] = name unless name.nil?
|
945
|
+
command.query['fields'] = fields unless fields.nil?
|
946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
947
|
+
execute_or_queue_command(command, &block)
|
948
|
+
end
|
949
|
+
|
950
|
+
# Revokes a given subscription.
|
951
|
+
# @param [String] name
|
952
|
+
# Required. Resource name of the subscription to revoke. e.g. projects/123/
|
953
|
+
# locations/US/subscriptions/456
|
954
|
+
# @param [Google::Apis::AnalyticshubV1::RevokeSubscriptionRequest] revoke_subscription_request_object
|
955
|
+
# @param [String] fields
|
956
|
+
# Selector specifying which fields to include in a partial response.
|
957
|
+
# @param [String] quota_user
|
958
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
959
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
960
|
+
# @param [Google::Apis::RequestOptions] options
|
961
|
+
# Request-specific options
|
962
|
+
#
|
963
|
+
# @yield [result, err] Result & error if block supplied
|
964
|
+
# @yieldparam result [Google::Apis::AnalyticshubV1::RevokeSubscriptionResponse] parsed result object
|
965
|
+
# @yieldparam err [StandardError] error object if request failed
|
966
|
+
#
|
967
|
+
# @return [Google::Apis::AnalyticshubV1::RevokeSubscriptionResponse]
|
968
|
+
#
|
969
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
970
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
971
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
972
|
+
def revoke_subscription(name, revoke_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
973
|
+
command = make_simple_command(:post, 'v1/{+name}:revoke', options)
|
974
|
+
command.request_representation = Google::Apis::AnalyticshubV1::RevokeSubscriptionRequest::Representation
|
975
|
+
command.request_object = revoke_subscription_request_object
|
976
|
+
command.response_representation = Google::Apis::AnalyticshubV1::RevokeSubscriptionResponse::Representation
|
977
|
+
command.response_class = Google::Apis::AnalyticshubV1::RevokeSubscriptionResponse
|
978
|
+
command.params['name'] = name unless name.nil?
|
979
|
+
command.query['fields'] = fields unless fields.nil?
|
980
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
981
|
+
execute_or_queue_command(command, &block)
|
982
|
+
end
|
692
983
|
|
693
984
|
protected
|
694
985
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-analyticshub_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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-
|
11
|
+
date: 2023-08-06 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-analyticshub_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticshub_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticshub_v1/v0.10.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticshub_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|