forked from googleapis/google-api-ruby-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclasses.rb
More file actions
5891 lines (4832 loc) · 227 KB
/
Copy pathclasses.rb
File metadata and controls
5891 lines (4832 loc) · 227 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DatastreamV1
# AppendOnly mode defines that all changes to a table will be written to the
# destination table.
class AppendOnly
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# AVRO file format configuration.
class AvroFileFormat
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Backfill strategy to automatically backfill the Stream's objects. Specific
# objects can be excluded.
class BackfillAllStrategy
include Google::Apis::Core::Hashable
# MongoDB Cluster structure.
# Corresponds to the JSON property `mongodbExcludedObjects`
# @return [Google::Apis::DatastreamV1::MongodbCluster]
attr_accessor :mongodb_excluded_objects
# MySQL database structure
# Corresponds to the JSON property `mysqlExcludedObjects`
# @return [Google::Apis::DatastreamV1::MysqlRdbms]
attr_accessor :mysql_excluded_objects
# Oracle database structure.
# Corresponds to the JSON property `oracleExcludedObjects`
# @return [Google::Apis::DatastreamV1::OracleRdbms]
attr_accessor :oracle_excluded_objects
# PostgreSQL database structure.
# Corresponds to the JSON property `postgresqlExcludedObjects`
# @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
attr_accessor :postgresql_excluded_objects
# Source catalog.
# Corresponds to the JSON property `saasExcludedObjects`
# @return [Google::Apis::DatastreamV1::SourceCatalog]
attr_accessor :saas_excluded_objects
# Salesforce organization structure.
# Corresponds to the JSON property `salesforceExcludedObjects`
# @return [Google::Apis::DatastreamV1::SalesforceOrg]
attr_accessor :salesforce_excluded_objects
# Spanner database structure.
# Corresponds to the JSON property `spannerExcludedObjects`
# @return [Google::Apis::DatastreamV1::SpannerDatabase]
attr_accessor :spanner_excluded_objects
# SQLServer database structure.
# Corresponds to the JSON property `sqlServerExcludedObjects`
# @return [Google::Apis::DatastreamV1::SqlServerRdbms]
attr_accessor :sql_server_excluded_objects
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@mongodb_excluded_objects = args[:mongodb_excluded_objects] if args.key?(:mongodb_excluded_objects)
@mysql_excluded_objects = args[:mysql_excluded_objects] if args.key?(:mysql_excluded_objects)
@oracle_excluded_objects = args[:oracle_excluded_objects] if args.key?(:oracle_excluded_objects)
@postgresql_excluded_objects = args[:postgresql_excluded_objects] if args.key?(:postgresql_excluded_objects)
@saas_excluded_objects = args[:saas_excluded_objects] if args.key?(:saas_excluded_objects)
@salesforce_excluded_objects = args[:salesforce_excluded_objects] if args.key?(:salesforce_excluded_objects)
@spanner_excluded_objects = args[:spanner_excluded_objects] if args.key?(:spanner_excluded_objects)
@sql_server_excluded_objects = args[:sql_server_excluded_objects] if args.key?(:sql_server_excluded_objects)
end
end
# Represents a backfill job on a specific stream object.
class BackfillJob
include Google::Apis::Core::Hashable
# Output only. Errors which caused the backfill job to fail.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::DatastreamV1::Error>]
attr_accessor :errors
# Represents a filter for included data on a stream object.
# Corresponds to the JSON property `eventFilter`
# @return [Google::Apis::DatastreamV1::EventFilter]
attr_accessor :event_filter
# Output only. Backfill job's end time.
# Corresponds to the JSON property `lastEndTime`
# @return [String]
attr_accessor :last_end_time
# Output only. Backfill job's start time.
# Corresponds to the JSON property `lastStartTime`
# @return [String]
attr_accessor :last_start_time
# Output only. Backfill job state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Backfill job's triggering reason.
# Corresponds to the JSON property `trigger`
# @return [String]
attr_accessor :trigger
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
@event_filter = args[:event_filter] if args.key?(:event_filter)
@last_end_time = args[:last_end_time] if args.key?(:last_end_time)
@last_start_time = args[:last_start_time] if args.key?(:last_start_time)
@state = args[:state] if args.key?(:state)
@trigger = args[:trigger] if args.key?(:trigger)
end
end
# Backfill strategy to disable automatic backfill for the Stream's objects.
class BackfillNoneStrategy
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Describes violations in a client request. This error type focuses on the
# syntactic aspects of the request.
class BadRequest
include Google::Apis::Core::Hashable
# Describes all violations in a client request.
# Corresponds to the JSON property `fieldViolations`
# @return [Array<Google::Apis::DatastreamV1::FieldViolation>]
attr_accessor :field_violations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@field_violations = args[:field_violations] if args.key?(:field_violations)
end
end
# Message to represent the option where Datastream will enforce encryption
# without authenticating server identity. Server certificates will be trusted by
# default.
class BasicEncryption
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# BigQuery clustering configuration.
class BigQueryClustering
include Google::Apis::Core::Hashable
# Required. Column names to set as clustering columns.
# Corresponds to the JSON property `columns`
# @return [Array<String>]
attr_accessor :columns
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@columns = args[:columns] if args.key?(:columns)
end
end
# BigQuery destination configuration
class BigQueryDestinationConfig
include Google::Apis::Core::Hashable
# AppendOnly mode defines that all changes to a table will be written to the
# destination table.
# Corresponds to the JSON property `appendOnly`
# @return [Google::Apis::DatastreamV1::AppendOnly]
attr_accessor :append_only
# The configuration for BLMT.
# Corresponds to the JSON property `blmtConfig`
# @return [Google::Apis::DatastreamV1::BlmtConfig]
attr_accessor :blmt_config
# The guaranteed data freshness (in seconds) when querying tables created by the
# stream. Editing this field will only affect new tables created in the future,
# but existing tables will not be impacted. Lower values mean that queries will
# return fresher data, but may result in higher cost.
# Corresponds to the JSON property `dataFreshness`
# @return [String]
attr_accessor :data_freshness
# Merge mode defines that all changes to a table will be merged at the
# destination table.
# Corresponds to the JSON property `merge`
# @return [Google::Apis::DatastreamV1::Merge]
attr_accessor :merge
# A single target dataset to which all data will be streamed.
# Corresponds to the JSON property `singleTargetDataset`
# @return [Google::Apis::DatastreamV1::SingleTargetDataset]
attr_accessor :single_target_dataset
# Destination datasets are created so that hierarchy of the destination data
# objects matches the source hierarchy.
# Corresponds to the JSON property `sourceHierarchyDatasets`
# @return [Google::Apis::DatastreamV1::SourceHierarchyDatasets]
attr_accessor :source_hierarchy_datasets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@append_only = args[:append_only] if args.key?(:append_only)
@blmt_config = args[:blmt_config] if args.key?(:blmt_config)
@data_freshness = args[:data_freshness] if args.key?(:data_freshness)
@merge = args[:merge] if args.key?(:merge)
@single_target_dataset = args[:single_target_dataset] if args.key?(:single_target_dataset)
@source_hierarchy_datasets = args[:source_hierarchy_datasets] if args.key?(:source_hierarchy_datasets)
end
end
# BigQuery partitioning configuration.
class BigQueryPartitioning
include Google::Apis::Core::Hashable
# Ingestion time partitioning. see https://cloud.google.com/bigquery/docs/
# partitioned-tables#ingestion_time
# Corresponds to the JSON property `ingestionTimePartition`
# @return [Google::Apis::DatastreamV1::IngestionTimePartition]
attr_accessor :ingestion_time_partition
# Integer range partitioning. see https://cloud.google.com/bigquery/docs/
# partitioned-tables#integer_range
# Corresponds to the JSON property `integerRangePartition`
# @return [Google::Apis::DatastreamV1::IntegerRangePartition]
attr_accessor :integer_range_partition
# Optional. If true, queries over the table require a partition filter.
# Corresponds to the JSON property `requirePartitionFilter`
# @return [Boolean]
attr_accessor :require_partition_filter
alias_method :require_partition_filter?, :require_partition_filter
# Time unit column partitioning. see https://cloud.google.com/bigquery/docs/
# partitioned-tables#date_timestamp_partitioned_tables
# Corresponds to the JSON property `timeUnitPartition`
# @return [Google::Apis::DatastreamV1::TimeUnitPartition]
attr_accessor :time_unit_partition
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ingestion_time_partition = args[:ingestion_time_partition] if args.key?(:ingestion_time_partition)
@integer_range_partition = args[:integer_range_partition] if args.key?(:integer_range_partition)
@require_partition_filter = args[:require_partition_filter] if args.key?(:require_partition_filter)
@time_unit_partition = args[:time_unit_partition] if args.key?(:time_unit_partition)
end
end
# Profile for connecting to a BigQuery destination.
class BigQueryProfile
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Configuration to use Binary Log Parser CDC technique.
class BinaryLogParser
include Google::Apis::Core::Hashable
# Configuration to specify the Oracle directories to access the log files.
# Corresponds to the JSON property `logFileDirectories`
# @return [Google::Apis::DatastreamV1::LogFileDirectories]
attr_accessor :log_file_directories
# Configuration to use Oracle ASM to access the log files.
# Corresponds to the JSON property `oracleAsmLogFileAccess`
# @return [Google::Apis::DatastreamV1::OracleAsmLogFileAccess]
attr_accessor :oracle_asm_log_file_access
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@log_file_directories = args[:log_file_directories] if args.key?(:log_file_directories)
@oracle_asm_log_file_access = args[:oracle_asm_log_file_access] if args.key?(:oracle_asm_log_file_access)
end
end
# Use Binary log position based replication.
class BinaryLogPosition
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The configuration for BLMT.
class BlmtConfig
include Google::Apis::Core::Hashable
# Required. The Cloud Storage bucket name.
# Corresponds to the JSON property `bucket`
# @return [String]
attr_accessor :bucket
# Required. The bigquery connection. Format: ``project`.`location`.`name``
# Corresponds to the JSON property `connectionName`
# @return [String]
attr_accessor :connection_name
# Required. The file format.
# Corresponds to the JSON property `fileFormat`
# @return [String]
attr_accessor :file_format
# The root path inside the Cloud Storage bucket.
# Corresponds to the JSON property `rootPath`
# @return [String]
attr_accessor :root_path
# Required. The table format.
# Corresponds to the JSON property `tableFormat`
# @return [String]
attr_accessor :table_format
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bucket = args[:bucket] if args.key?(:bucket)
@connection_name = args[:connection_name] if args.key?(:connection_name)
@file_format = args[:file_format] if args.key?(:file_format)
@root_path = args[:root_path] if args.key?(:root_path)
@table_format = args[:table_format] if args.key?(:table_format)
end
end
# The request message for Operations.CancelOperation.
class CancelOperationRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The strategy that the stream uses for CDC replication.
class CdcStrategy
include Google::Apis::Core::Hashable
# CDC strategy to start replicating from the most recent position in the source.
# Corresponds to the JSON property `mostRecentStartPosition`
# @return [Google::Apis::DatastreamV1::MostRecentStartPosition]
attr_accessor :most_recent_start_position
# CDC strategy to resume replication from the next available position in the
# source.
# Corresponds to the JSON property `nextAvailableStartPosition`
# @return [Google::Apis::DatastreamV1::NextAvailableStartPosition]
attr_accessor :next_available_start_position
# CDC strategy to start replicating from a specific position in the source.
# Corresponds to the JSON property `specificStartPosition`
# @return [Google::Apis::DatastreamV1::SpecificStartPosition]
attr_accessor :specific_start_position
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@most_recent_start_position = args[:most_recent_start_position] if args.key?(:most_recent_start_position)
@next_available_start_position = args[:next_available_start_position] if args.key?(:next_available_start_position)
@specific_start_position = args[:specific_start_position] if args.key?(:specific_start_position)
end
end
# A set of reusable connection configurations to be used as a source or
# destination for a stream.
class ConnectionProfile
include Google::Apis::Core::Hashable
# Profile for connecting to a BigQuery destination.
# Corresponds to the JSON property `bigqueryProfile`
# @return [Google::Apis::DatastreamV1::BigQueryProfile]
attr_accessor :bigquery_profile
# Output only. The create time of the resource.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Profile for connecting to a Dataverse source.
# Corresponds to the JSON property `dataverseProfile`
# @return [Google::Apis::DatastreamV1::DataverseProfile]
attr_accessor :dataverse_profile
# Required. Display name.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Forward SSH Tunnel connectivity.
# Corresponds to the JSON property `forwardSshConnectivity`
# @return [Google::Apis::DatastreamV1::ForwardSshTunnelConnectivity]
attr_accessor :forward_ssh_connectivity
# Profile for connecting to a Cloud Storage destination.
# Corresponds to the JSON property `gcsProfile`
# @return [Google::Apis::DatastreamV1::GcsProfile]
attr_accessor :gcs_profile
# Labels.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Profile for connecting to a MongoDB source.
# Corresponds to the JSON property `mongodbProfile`
# @return [Google::Apis::DatastreamV1::MongodbProfile]
attr_accessor :mongodb_profile
# Profile for connecting to a MySQL source.
# Corresponds to the JSON property `mysqlProfile`
# @return [Google::Apis::DatastreamV1::MysqlProfile]
attr_accessor :mysql_profile
# Output only. Identifier. The resource's name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Profile for connecting to an Oracle source.
# Corresponds to the JSON property `oracleProfile`
# @return [Google::Apis::DatastreamV1::OracleProfile]
attr_accessor :oracle_profile
# Profile for connecting to a PostgreSQL source.
# Corresponds to the JSON property `postgresqlProfile`
# @return [Google::Apis::DatastreamV1::PostgresqlProfile]
attr_accessor :postgresql_profile
# Private Connectivity
# Corresponds to the JSON property `privateConnectivity`
# @return [Google::Apis::DatastreamV1::PrivateConnectivity]
attr_accessor :private_connectivity
# Profile for connecting to a Salesforce Marketing Cloud source.
# Corresponds to the JSON property `salesforceMarketingCloudProfile`
# @return [Google::Apis::DatastreamV1::SalesforceMarketingCloudProfile]
attr_accessor :salesforce_marketing_cloud_profile
# Profile for connecting to a Salesforce source.
# Corresponds to the JSON property `salesforceProfile`
# @return [Google::Apis::DatastreamV1::SalesforceProfile]
attr_accessor :salesforce_profile
# Output only. Reserved for future use.
# Corresponds to the JSON property `satisfiesPzi`
# @return [Boolean]
attr_accessor :satisfies_pzi
alias_method :satisfies_pzi?, :satisfies_pzi
# Output only. Reserved for future use.
# Corresponds to the JSON property `satisfiesPzs`
# @return [Boolean]
attr_accessor :satisfies_pzs
alias_method :satisfies_pzs?, :satisfies_pzs
# Profile for connecting to a ServiceNow source.
# Corresponds to the JSON property `serviceNowProfile`
# @return [Google::Apis::DatastreamV1::ServiceNowProfile]
attr_accessor :service_now_profile
# Profile for connecting to a Spanner source.
# Corresponds to the JSON property `spannerProfile`
# @return [Google::Apis::DatastreamV1::SpannerProfile]
attr_accessor :spanner_profile
# Profile for connecting to a SQLServer source.
# Corresponds to the JSON property `sqlServerProfile`
# @return [Google::Apis::DatastreamV1::SqlServerProfile]
attr_accessor :sql_server_profile
# Static IP address connectivity. Used when the source database is configured to
# allow incoming connections from the Datastream public IP addresses for the
# region specified in the connection profile.
# Corresponds to the JSON property `staticServiceIpConnectivity`
# @return [Google::Apis::DatastreamV1::StaticServiceIpConnectivity]
attr_accessor :static_service_ip_connectivity
# Output only. The update time of the resource.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bigquery_profile = args[:bigquery_profile] if args.key?(:bigquery_profile)
@create_time = args[:create_time] if args.key?(:create_time)
@dataverse_profile = args[:dataverse_profile] if args.key?(:dataverse_profile)
@display_name = args[:display_name] if args.key?(:display_name)
@forward_ssh_connectivity = args[:forward_ssh_connectivity] if args.key?(:forward_ssh_connectivity)
@gcs_profile = args[:gcs_profile] if args.key?(:gcs_profile)
@labels = args[:labels] if args.key?(:labels)
@mongodb_profile = args[:mongodb_profile] if args.key?(:mongodb_profile)
@mysql_profile = args[:mysql_profile] if args.key?(:mysql_profile)
@name = args[:name] if args.key?(:name)
@oracle_profile = args[:oracle_profile] if args.key?(:oracle_profile)
@postgresql_profile = args[:postgresql_profile] if args.key?(:postgresql_profile)
@private_connectivity = args[:private_connectivity] if args.key?(:private_connectivity)
@salesforce_marketing_cloud_profile = args[:salesforce_marketing_cloud_profile] if args.key?(:salesforce_marketing_cloud_profile)
@salesforce_profile = args[:salesforce_profile] if args.key?(:salesforce_profile)
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
@service_now_profile = args[:service_now_profile] if args.key?(:service_now_profile)
@spanner_profile = args[:spanner_profile] if args.key?(:spanner_profile)
@sql_server_profile = args[:sql_server_profile] if args.key?(:sql_server_profile)
@static_service_ip_connectivity = args[:static_service_ip_connectivity] if args.key?(:static_service_ip_connectivity)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# A customization rule to apply to a set of objects.
class CustomizationRule
include Google::Apis::Core::Hashable
# BigQuery clustering configuration.
# Corresponds to the JSON property `bigqueryClustering`
# @return [Google::Apis::DatastreamV1::BigQueryClustering]
attr_accessor :bigquery_clustering
# BigQuery partitioning configuration.
# Corresponds to the JSON property `bigqueryPartitioning`
# @return [Google::Apis::DatastreamV1::BigQueryPartitioning]
attr_accessor :bigquery_partitioning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bigquery_clustering = args[:bigquery_clustering] if args.key?(:bigquery_clustering)
@bigquery_partitioning = args[:bigquery_partitioning] if args.key?(:bigquery_partitioning)
end
end
# Dataset template used for dynamic dataset creation.
class DatasetTemplate
include Google::Apis::Core::Hashable
# If supplied, every created dataset will have its name prefixed by the provided
# value. The prefix and name will be separated by an underscore. i.e. _.
# Corresponds to the JSON property `datasetIdPrefix`
# @return [String]
attr_accessor :dataset_id_prefix
# Describes the Cloud KMS encryption key that will be used to protect
# destination BigQuery table. The BigQuery Service Account associated with your
# project requires access to this encryption key. i.e. projects/`project`/
# locations/`location`/keyRings/`key_ring`/cryptoKeys/`cryptoKey`. See https://
# cloud.google.com/bigquery/docs/customer-managed-encryption for more
# information.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
# Required. The geographic location where the dataset should reside. See https://
# cloud.google.com/bigquery/docs/locations for supported locations.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dataset_id_prefix = args[:dataset_id_prefix] if args.key?(:dataset_id_prefix)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@location = args[:location] if args.key?(:location)
end
end
# Profile for connecting to a Dataverse source.
class DataverseProfile
include Google::Apis::Core::Hashable
# Required. Environment URL of the Microsoft Dataverse instance. Example: `.crm.
# dynamics.com`
# Corresponds to the JSON property `environmentUrl`
# @return [String]
attr_accessor :environment_url
# OAuth Client Credentials.
# Corresponds to the JSON property `oauthClientCredentials`
# @return [Google::Apis::DatastreamV1::OauthClientCredentials]
attr_accessor :oauth_client_credentials
# Required. Tenant id of the Microsoft Dataverse instance.
# Corresponds to the JSON property `tenantId`
# @return [String]
attr_accessor :tenant_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@environment_url = args[:environment_url] if args.key?(:environment_url)
@oauth_client_credentials = args[:oauth_client_credentials] if args.key?(:oauth_client_credentials)
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end
end
# Configuration for syncing data from a Dataverse source.
class DataverseSourceConfig
include Google::Apis::Core::Hashable
# Source catalog.
# Corresponds to the JSON property `excludeObjects`
# @return [Google::Apis::DatastreamV1::SourceCatalog]
attr_accessor :exclude_objects
# Source catalog.
# Corresponds to the JSON property `includeObjects`
# @return [Google::Apis::DatastreamV1::SourceCatalog]
attr_accessor :include_objects
# Required. Incremental sync polling interval for all objects. If not set, a
# default value of `5 minutes` is used. The duration must be from `5 minutes` to
# `24 hours`, inclusive.
# Corresponds to the JSON property `pollingInterval`
# @return [String]
attr_accessor :polling_interval
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exclude_objects = args[:exclude_objects] if args.key?(:exclude_objects)
@include_objects = args[:include_objects] if args.key?(:include_objects)
@polling_interval = args[:polling_interval] if args.key?(:polling_interval)
end
end
# Describes additional debugging info.
class DebugInfo
include Google::Apis::Core::Hashable
# Additional debugging information provided by the server.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
# The stack trace entries indicating where the error occurred.
# Corresponds to the JSON property `stackEntries`
# @return [Array<String>]
attr_accessor :stack_entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@detail = args[:detail] if args.key?(:detail)
@stack_entries = args[:stack_entries] if args.key?(:stack_entries)
end
end
# The configuration of the stream destination.
class DestinationConfig
include Google::Apis::Core::Hashable
# BigQuery destination configuration
# Corresponds to the JSON property `bigqueryDestinationConfig`
# @return [Google::Apis::DatastreamV1::BigQueryDestinationConfig]
attr_accessor :bigquery_destination_config
# Required. Destination connection profile resource. Format: `projects/`project`/
# locations/`location`/connectionProfiles/`name``
# Corresponds to the JSON property `destinationConnectionProfile`
# @return [String]
attr_accessor :destination_connection_profile
# Google Cloud Storage destination configuration
# Corresponds to the JSON property `gcsDestinationConfig`
# @return [Google::Apis::DatastreamV1::GcsDestinationConfig]
attr_accessor :gcs_destination_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bigquery_destination_config = args[:bigquery_destination_config] if args.key?(:bigquery_destination_config)
@destination_connection_profile = args[:destination_connection_profile] if args.key?(:destination_connection_profile)
@gcs_destination_config = args[:gcs_destination_config] if args.key?(:gcs_destination_config)
end
end
# Request message for 'discover' ConnectionProfile request.
class DiscoverConnectionProfileRequest
include Google::Apis::Core::Hashable
# A set of reusable connection configurations to be used as a source or
# destination for a stream.
# Corresponds to the JSON property `connectionProfile`
# @return [Google::Apis::DatastreamV1::ConnectionProfile]
attr_accessor :connection_profile
# Optional. A reference to an existing connection profile.
# Corresponds to the JSON property `connectionProfileName`
# @return [String]
attr_accessor :connection_profile_name
# Optional. Whether to retrieve the full hierarchy of data objects (TRUE) or
# only the current level (FALSE).
# Corresponds to the JSON property `fullHierarchy`
# @return [Boolean]
attr_accessor :full_hierarchy
alias_method :full_hierarchy?, :full_hierarchy
# Optional. The number of hierarchy levels below the current level to be
# retrieved.
# Corresponds to the JSON property `hierarchyDepth`
# @return [Fixnum]
attr_accessor :hierarchy_depth
# MongoDB Cluster structure.
# Corresponds to the JSON property `mongodbCluster`
# @return [Google::Apis::DatastreamV1::MongodbCluster]
attr_accessor :mongodb_cluster
# MySQL database structure
# Corresponds to the JSON property `mysqlRdbms`
# @return [Google::Apis::DatastreamV1::MysqlRdbms]
attr_accessor :mysql_rdbms
# Oracle database structure.
# Corresponds to the JSON property `oracleRdbms`
# @return [Google::Apis::DatastreamV1::OracleRdbms]
attr_accessor :oracle_rdbms
# PostgreSQL database structure.
# Corresponds to the JSON property `postgresqlRdbms`
# @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
attr_accessor :postgresql_rdbms
# Salesforce organization structure.
# Corresponds to the JSON property `salesforceOrg`
# @return [Google::Apis::DatastreamV1::SalesforceOrg]
attr_accessor :salesforce_org
# Source catalog.
# Corresponds to the JSON property `sourceCatalog`
# @return [Google::Apis::DatastreamV1::SourceCatalog]
attr_accessor :source_catalog
# Spanner database structure.
# Corresponds to the JSON property `spannerDatabase`
# @return [Google::Apis::DatastreamV1::SpannerDatabase]
attr_accessor :spanner_database
# SQLServer database structure.
# Corresponds to the JSON property `sqlServerRdbms`
# @return [Google::Apis::DatastreamV1::SqlServerRdbms]
attr_accessor :sql_server_rdbms
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@connection_profile = args[:connection_profile] if args.key?(:connection_profile)
@connection_profile_name = args[:connection_profile_name] if args.key?(:connection_profile_name)
@full_hierarchy = args[:full_hierarchy] if args.key?(:full_hierarchy)
@hierarchy_depth = args[:hierarchy_depth] if args.key?(:hierarchy_depth)
@mongodb_cluster = args[:mongodb_cluster] if args.key?(:mongodb_cluster)
@mysql_rdbms = args[:mysql_rdbms] if args.key?(:mysql_rdbms)
@oracle_rdbms = args[:oracle_rdbms] if args.key?(:oracle_rdbms)
@postgresql_rdbms = args[:postgresql_rdbms] if args.key?(:postgresql_rdbms)
@salesforce_org = args[:salesforce_org] if args.key?(:salesforce_org)
@source_catalog = args[:source_catalog] if args.key?(:source_catalog)
@spanner_database = args[:spanner_database] if args.key?(:spanner_database)
@sql_server_rdbms = args[:sql_server_rdbms] if args.key?(:sql_server_rdbms)
end
end
# Response from a discover request.
class DiscoverConnectionProfileResponse
include Google::Apis::Core::Hashable
# MongoDB Cluster structure.
# Corresponds to the JSON property `mongodbCluster`
# @return [Google::Apis::DatastreamV1::MongodbCluster]
attr_accessor :mongodb_cluster
# MySQL database structure
# Corresponds to the JSON property `mysqlRdbms`
# @return [Google::Apis::DatastreamV1::MysqlRdbms]
attr_accessor :mysql_rdbms
# Oracle database structure.
# Corresponds to the JSON property `oracleRdbms`
# @return [Google::Apis::DatastreamV1::OracleRdbms]
attr_accessor :oracle_rdbms
# PostgreSQL database structure.
# Corresponds to the JSON property `postgresqlRdbms`
# @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
attr_accessor :postgresql_rdbms
# Salesforce organization structure.
# Corresponds to the JSON property `salesforceOrg`
# @return [Google::Apis::DatastreamV1::SalesforceOrg]
attr_accessor :salesforce_org
# Source catalog.
# Corresponds to the JSON property `sourceCatalog`
# @return [Google::Apis::DatastreamV1::SourceCatalog]
attr_accessor :source_catalog
# Spanner database structure.
# Corresponds to the JSON property `spannerDatabase`
# @return [Google::Apis::DatastreamV1::SpannerDatabase]
attr_accessor :spanner_database
# SQLServer database structure.
# Corresponds to the JSON property `sqlServerRdbms`
# @return [Google::Apis::DatastreamV1::SqlServerRdbms]
attr_accessor :sql_server_rdbms
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@mongodb_cluster = args[:mongodb_cluster] if args.key?(:mongodb_cluster)
@mysql_rdbms = args[:mysql_rdbms] if args.key?(:mysql_rdbms)
@oracle_rdbms = args[:oracle_rdbms] if args.key?(:oracle_rdbms)
@postgresql_rdbms = args[:postgresql_rdbms] if args.key?(:postgresql_rdbms)
@salesforce_org = args[:salesforce_org] if args.key?(:salesforce_org)
@source_catalog = args[:source_catalog] if args.key?(:source_catalog)
@spanner_database = args[:spanner_database] if args.key?(:spanner_database)
@sql_server_rdbms = args[:sql_server_rdbms] if args.key?(:sql_server_rdbms)
end
end
# Configuration to drop large object values.
class DropLargeObjects
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); `
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Message to represent the option where Datastream will enforce encryption and
# authenticate server identity. ca_certificate must be set if user selects this
# option.
class EncryptionAndServerValidation
include Google::Apis::Core::Hashable
# Optional. Input only. PEM-encoded certificate of the CA that signed the source
# database server's certificate.
# Corresponds to the JSON property `caCertificate`
# @return [String]
attr_accessor :ca_certificate
# Optional. The hostname mentioned in the Subject or SAN extension of the server
# certificate. This field is used for bypassing the hostname validation while
# verifying server certificate. This is required for scenarios where the host
# name that datastream connects to is different from the certificate's subject.
# This specifically happens for private connectivity. It could also happen when
# the customer provides a public IP in connection profile but the same is not
# present in the server certificate.
# Corresponds to the JSON property `serverCertificateHostname`
# @return [String]
attr_accessor :server_certificate_hostname