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
// This file is @generated by prost-build.
/// A message defining the database engine and provider.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DatabaseType {
/// The database provider.
#[prost(enumeration = "DatabaseProvider", tag = "1")]
pub provider: i32,
/// The database engine.
#[prost(enumeration = "DatabaseEngine", tag = "2")]
pub engine: i32,
}
/// Migration job as stored in Cloud Logging logs.
/// NEXT_TAG = 36.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoggedMigrationJob {
/// Required. The unique identifier for a migration job.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. Labels.
#[prost(btree_map = "string, string", tag = "2")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Required. The display name.
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
/// Required. The current migration job state.
#[prost(enumeration = "logged_migration_job::State", tag = "4")]
pub state: i32,
/// Required. The current migration job phase.
#[prost(enumeration = "logged_migration_job::Phase", tag = "5")]
pub phase: i32,
/// Required. The migration job type.
#[prost(enumeration = "logged_migration_job::Type", tag = "6")]
pub r#type: i32,
/// Optional. An optional dump path (gs://\[BUCKET_NAME\]/[OBJECT_NAME]).
#[prost(string, tag = "7")]
pub dump_path: ::prost::alloc::string::String,
/// Required. The migration job source connection profile name.
#[prost(string, tag = "8")]
pub source: ::prost::alloc::string::String,
/// Required. The migration job destination connection profile name.
#[prost(string, tag = "9")]
pub destination: ::prost::alloc::string::String,
/// Required. the migration job duration in seconds.
#[prost(message, optional, tag = "10")]
pub duration: ::core::option::Option<::prost_types::Duration>,
/// Required. Type of connectivity to source database.
#[prost(enumeration = "logged_migration_job::ConnectivityType", tag = "11")]
pub connectivity_type: i32,
/// Required. The error details in case of state FAILED.
#[prost(message, optional, tag = "12")]
pub error: ::core::option::Option<super::super::super::super::rpc::Status>,
/// Required. The time when this migration job was completed. Should only be set when the
/// phase of the migration job is COMPLETED.
#[prost(message, optional, tag = "13")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
/// Required. The indicative source database.
#[prost(message, optional, tag = "14")]
pub source_database: ::core::option::Option<DatabaseType>,
/// Required. The indicative destination database.
#[prost(message, optional, tag = "15")]
pub destination_database: ::core::option::Option<DatabaseType>,
}
/// Nested message and enum types in `LoggedMigrationJob`.
pub mod logged_migration_job {
/// The migration job states enum.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// The state of the migration job is unknown.
Unspecified = 0,
/// The migration job is down for maintenance.
Maintenance = 1,
/// The migration job is in draft mode and fully editable.
Draft = 2,
/// The migration job is being created.
Creating = 3,
/// The migration job is created and not started.
NotStarted = 4,
/// The migration job is running
Running = 5,
/// The migration job failed.
Failed = 6,
/// The migration job has been completed.
Completed = 7,
/// The migration job is being deleted.
Deleting = 8,
/// The migration job is being stopped.
Stopping = 9,
/// The migration job is currently stopped.
Stopped = 10,
/// The migration job has been deleted.
Deleted = 11,
/// The migration job is being updated.
Updating = 12,
/// The migration job is starting.
Starting = 13,
/// The migration job is restarting.
Restarting = 14,
/// The migration job is resuming.
Resuming = 15,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Maintenance => "MAINTENANCE",
State::Draft => "DRAFT",
State::Creating => "CREATING",
State::NotStarted => "NOT_STARTED",
State::Running => "RUNNING",
State::Failed => "FAILED",
State::Completed => "COMPLETED",
State::Deleting => "DELETING",
State::Stopping => "STOPPING",
State::Stopped => "STOPPED",
State::Deleted => "DELETED",
State::Updating => "UPDATING",
State::Starting => "STARTING",
State::Restarting => "RESTARTING",
State::Resuming => "RESUMING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"MAINTENANCE" => Some(Self::Maintenance),
"DRAFT" => Some(Self::Draft),
"CREATING" => Some(Self::Creating),
"NOT_STARTED" => Some(Self::NotStarted),
"RUNNING" => Some(Self::Running),
"FAILED" => Some(Self::Failed),
"COMPLETED" => Some(Self::Completed),
"DELETING" => Some(Self::Deleting),
"STOPPING" => Some(Self::Stopping),
"STOPPED" => Some(Self::Stopped),
"DELETED" => Some(Self::Deleted),
"UPDATING" => Some(Self::Updating),
"STARTING" => Some(Self::Starting),
"RESTARTING" => Some(Self::Restarting),
"RESUMING" => Some(Self::Resuming),
_ => None,
}
}
}
/// The migration job phases enum.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Phase {
/// The phase of the migration job is unknown.
Unspecified = 0,
/// The migration job is in the full dump phase.
FullDump = 1,
/// The migration job is CDC phase.
Cdc = 2,
/// The migration job is running the promote phase.
PromoteInProgress = 3,
/// Only RDS flow - waiting for source writes to stop
WaitingForSourceWritesToStop = 4,
/// Only RDS flow - the sources writes stopped, waiting for dump to begin
PreparingTheDump = 5,
}
impl Phase {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Phase::Unspecified => "PHASE_UNSPECIFIED",
Phase::FullDump => "FULL_DUMP",
Phase::Cdc => "CDC",
Phase::PromoteInProgress => "PROMOTE_IN_PROGRESS",
Phase::WaitingForSourceWritesToStop => {
"WAITING_FOR_SOURCE_WRITES_TO_STOP"
}
Phase::PreparingTheDump => "PREPARING_THE_DUMP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PHASE_UNSPECIFIED" => Some(Self::Unspecified),
"FULL_DUMP" => Some(Self::FullDump),
"CDC" => Some(Self::Cdc),
"PROMOTE_IN_PROGRESS" => Some(Self::PromoteInProgress),
"WAITING_FOR_SOURCE_WRITES_TO_STOP" => {
Some(Self::WaitingForSourceWritesToStop)
}
"PREPARING_THE_DUMP" => Some(Self::PreparingTheDump),
_ => None,
}
}
}
/// The migration job types.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// The type of the migration job is unknown.
Unspecified = 0,
/// The migration job is a one time migration.
OneTime = 1,
/// The migration job is a continuous migration.
Continuous = 2,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "TYPE_UNSPECIFIED",
Type::OneTime => "ONE_TIME",
Type::Continuous => "CONTINUOUS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"ONE_TIME" => Some(Self::OneTime),
"CONTINUOUS" => Some(Self::Continuous),
_ => None,
}
}
}
/// Type of connectivity to source database.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ConnectivityType {
/// No data defined.
Unspecified = 0,
/// Connect using static IO
StaticIp = 1,
/// Use reverse SSH connectivity.
ReverseSsh = 2,
/// Use VPC Peering connectivity.
VpcPeering = 3,
}
impl ConnectivityType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ConnectivityType::Unspecified => "CONNECTIVITY_TYPE_UNSPECIFIED",
ConnectivityType::StaticIp => "STATIC_IP",
ConnectivityType::ReverseSsh => "REVERSE_SSH",
ConnectivityType::VpcPeering => "VPC_PEERING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CONNECTIVITY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"STATIC_IP" => Some(Self::StaticIp),
"REVERSE_SSH" => Some(Self::ReverseSsh),
"VPC_PEERING" => Some(Self::VpcPeering),
_ => None,
}
}
}
}
/// An MySQL database connection profile.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MySqlConnectionProfile {
/// The database version.
#[prost(enumeration = "my_sql_connection_profile::Version", tag = "1")]
pub version: i32,
/// The Cloud SQL id for a Cloud SQL instance.
#[prost(string, tag = "2")]
pub cloud_sql_id: ::prost::alloc::string::String,
}
/// Nested message and enum types in `MySqlConnectionProfile`.
pub mod my_sql_connection_profile {
/// The MySQL database version.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Version {
/// Unspecified version.
Unspecified = 0,
/// MySQL 5.5.
V55 = 1,
/// MySQL 5.6.
V56 = 2,
/// MySQL 5.7.
V57 = 3,
/// MySQL 8.0.
V80 = 4,
}
impl Version {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Version::Unspecified => "VERSION_UNSPECIFIED",
Version::V55 => "V5_5",
Version::V56 => "V5_6",
Version::V57 => "V5_7",
Version::V80 => "V8_0",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VERSION_UNSPECIFIED" => Some(Self::Unspecified),
"V5_5" => Some(Self::V55),
"V5_6" => Some(Self::V56),
"V5_7" => Some(Self::V57),
"V8_0" => Some(Self::V80),
_ => None,
}
}
}
}
/// An PostgreSQL connection profile.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PostgreSqlConnectionProfile {
/// The database version.
#[prost(enumeration = "postgre_sql_connection_profile::Version", tag = "1")]
pub version: i32,
/// The Cloud SQL id for a Cloud SQL instance.
#[prost(string, tag = "2")]
pub cloud_sql_id: ::prost::alloc::string::String,
}
/// Nested message and enum types in `PostgreSqlConnectionProfile`.
pub mod postgre_sql_connection_profile {
/// The PostgreSQL database version.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Version {
/// Unspecified version.
Unspecified = 0,
/// PostgreSQL 9.6.
V96 = 1,
/// PostgreSQL 11.
V11 = 2,
/// PostgreSQL 10.
V10 = 3,
/// PostgreSQL 12.
V12 = 4,
/// PostgreSQL 13.
V13 = 5,
}
impl Version {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Version::Unspecified => "VERSION_UNSPECIFIED",
Version::V96 => "V9_6",
Version::V11 => "V11",
Version::V10 => "V10",
Version::V12 => "V12",
Version::V13 => "V13",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VERSION_UNSPECIFIED" => Some(Self::Unspecified),
"V9_6" => Some(Self::V96),
"V11" => Some(Self::V11),
"V10" => Some(Self::V10),
"V12" => Some(Self::V12),
"V13" => Some(Self::V13),
_ => None,
}
}
}
}
/// A CloudSQL connection profile.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloudSqlConnectionProfile {
/// The Cloud SQL id.
#[prost(string, tag = "1")]
pub cloud_sql_id: ::prost::alloc::string::String,
}
/// An Oracle connection profile.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OracleConnectionProfile {
/// Required. Type of connectivity to source database.
#[prost(enumeration = "oracle_connection_profile::ConnectivityType", tag = "1")]
pub connectivity_type: i32,
}
/// Nested message and enum types in `OracleConnectionProfile`.
pub mod oracle_connection_profile {
/// Connectivity options used to establish a connection to the profile.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ConnectivityType {
/// No data defined.
Unspecified = 0,
/// Static Service IP connectivity.
StaticServiceIp = 1,
/// Forward SSH tunnel connectivity.
ForwardSshTunnel = 2,
/// Private connectivity.
PrivateConnectivity = 3,
}
impl ConnectivityType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ConnectivityType::Unspecified => "CONNECTIVITY_TYPE_UNSPECIFIED",
ConnectivityType::StaticServiceIp => "STATIC_SERVICE_IP",
ConnectivityType::ForwardSshTunnel => "FORWARD_SSH_TUNNEL",
ConnectivityType::PrivateConnectivity => "PRIVATE_CONNECTIVITY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CONNECTIVITY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"STATIC_SERVICE_IP" => Some(Self::StaticServiceIp),
"FORWARD_SSH_TUNNEL" => Some(Self::ForwardSshTunnel),
"PRIVATE_CONNECTIVITY" => Some(Self::PrivateConnectivity),
_ => None,
}
}
}
}
/// An producer connection profile definition.
/// NEXT_TAG = 8.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoggedConnectionProfile {
/// The unique identifier for a connection profile.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Labels.
#[prost(btree_map = "string, string", tag = "2")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The current connection profile state.
#[prost(enumeration = "logged_connection_profile::State", tag = "3")]
pub state: i32,
/// The display name.
#[prost(string, tag = "4")]
pub display_name: ::prost::alloc::string::String,
/// The error details in case of state FAILED.
#[prost(message, optional, tag = "5")]
pub error: ::core::option::Option<super::super::super::super::rpc::Status>,
/// The database provider.
#[prost(enumeration = "DatabaseProvider", tag = "6")]
pub provider: i32,
/// The connection profile definition
#[prost(
oneof = "logged_connection_profile::ConnectionProfile",
tags = "100, 101, 102, 103"
)]
pub connection_profile: ::core::option::Option<
logged_connection_profile::ConnectionProfile,
>,
}
/// Nested message and enum types in `LoggedConnectionProfile`.
pub mod logged_connection_profile {
/// The connection profile states enum.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// The state of the connection profile is unknown.
Unspecified = 0,
/// The connection profile is in draft mode and fully editable.
Draft = 1,
/// The connection profile is being created.
Creating = 2,
/// The connection profile is ready.
Ready = 3,
/// The connection profile is being updated.
Updating = 4,
/// The connection profile is being deleted.
Deleting = 5,
/// The connection profile has been deleted.
Deleted = 6,
/// The last action on the connection profile failed.
Failed = 7,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Draft => "DRAFT",
State::Creating => "CREATING",
State::Ready => "READY",
State::Updating => "UPDATING",
State::Deleting => "DELETING",
State::Deleted => "DELETED",
State::Failed => "FAILED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"DRAFT" => Some(Self::Draft),
"CREATING" => Some(Self::Creating),
"READY" => Some(Self::Ready),
"UPDATING" => Some(Self::Updating),
"DELETING" => Some(Self::Deleting),
"DELETED" => Some(Self::Deleted),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
/// The connection profile definition
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ConnectionProfile {
/// A MySQL database connection profile.
#[prost(message, tag = "100")]
Mysql(super::MySqlConnectionProfile),
/// A PostgreSQL database connection profile.
#[prost(message, tag = "101")]
Postgresql(super::PostgreSqlConnectionProfile),
/// A CloudSQL database connection profile.
#[prost(message, tag = "102")]
Cloudsql(super::CloudSqlConnectionProfile),
/// An Oracle database connection profile.
#[prost(message, tag = "103")]
Oracle(super::OracleConnectionProfile),
}
}
/// Log definition for Migration Job event
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MigrationJobEventLog {
/// The migration job resource
#[prost(message, optional, tag = "1")]
pub migration_job: ::core::option::Option<LoggedMigrationJob>,
/// Timestamp of the event
#[prost(message, optional, tag = "2")]
pub occurrence_timestamp: ::core::option::Option<::prost_types::Timestamp>,
/// Event code
#[prost(int32, tag = "3")]
pub code: i32,
/// Event message
#[prost(string, tag = "4")]
pub text_message: ::prost::alloc::string::String,
/// Original event data
#[prost(oneof = "migration_job_event_log::OriginalCause", tags = "200, 201")]
pub original_cause: ::core::option::Option<migration_job_event_log::OriginalCause>,
}
/// Nested message and enum types in `MigrationJobEventLog`.
pub mod migration_job_event_log {
/// Original event data
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum OriginalCause {
/// Original event code
#[prost(int32, tag = "200")]
OriginalCode(i32),
/// Original event message
#[prost(string, tag = "201")]
OriginalMessage(::prost::alloc::string::String),
}
}
/// Log definition for Connection Profile event
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionProfileEventLog {
/// The connection profilr resource
#[prost(message, optional, tag = "1")]
pub connection_profile: ::core::option::Option<LoggedConnectionProfile>,
/// Timestamp of the event
#[prost(message, optional, tag = "2")]
pub occurrence_timestamp: ::core::option::Option<::prost_types::Timestamp>,
/// Event code
#[prost(int32, tag = "3")]
pub code: i32,
/// Event message
#[prost(string, tag = "4")]
pub text_message: ::prost::alloc::string::String,
/// Original event data
#[prost(oneof = "connection_profile_event_log::OriginalCause", tags = "200, 201")]
pub original_cause: ::core::option::Option<
connection_profile_event_log::OriginalCause,
>,
}
/// Nested message and enum types in `ConnectionProfileEventLog`.
pub mod connection_profile_event_log {
/// Original event data
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum OriginalCause {
/// Original event code
#[prost(int32, tag = "200")]
OriginalCode(i32),
/// Original event message
#[prost(string, tag = "201")]
OriginalMessage(::prost::alloc::string::String),
}
}
/// The PrivateConnection resource is used to establish private connectivity
/// with the customer's network.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoggedPrivateConnection {
/// The resource's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Labels.
#[prost(btree_map = "string, string", tag = "2")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Display name.
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
/// The state of the Private Connection.
#[prost(enumeration = "logged_private_connection::State", tag = "4")]
pub state: i32,
/// The error details in case of state FAILED.
#[prost(message, optional, tag = "5")]
pub error: ::core::option::Option<super::super::super::super::rpc::Status>,
/// VPC Peering Config.
#[prost(message, optional, tag = "100")]
pub vpc_peering_config: ::core::option::Option<VpcPeeringConfig>,
}
/// Nested message and enum types in `LoggedPrivateConnection`.
pub mod logged_private_connection {
/// Private Connection state.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// Unspecified state.
Unspecified = 0,
/// The private connection is in creation state - creating resources.
Creating = 1,
/// The private connection has been created with all of its resources.
Created = 2,
/// The private connection creation has failed.
Failed = 3,
/// The private connection is being deleted.
Deleting = 4,
/// Delete request has failed, resource is in invalid state.
FailedToDelete = 5,
/// The private connection has been deleted.
Deleted = 6,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Creating => "CREATING",
State::Created => "CREATED",
State::Failed => "FAILED",
State::Deleting => "DELETING",
State::FailedToDelete => "FAILED_TO_DELETE",
State::Deleted => "DELETED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATING" => Some(Self::Creating),
"CREATED" => Some(Self::Created),
"FAILED" => Some(Self::Failed),
"DELETING" => Some(Self::Deleting),
"FAILED_TO_DELETE" => Some(Self::FailedToDelete),
"DELETED" => Some(Self::Deleted),
_ => None,
}
}
}
}
/// The VPC Peering configuration is used to create VPC peering between
/// the data plane and the consumer's VPC.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpcPeeringConfig {
/// Fully qualified name of the VPC DMS will peer to.
#[prost(string, tag = "1")]
pub vpc_name: ::prost::alloc::string::String,
/// The subnet that will be peered to. (CIDR of /29).
#[prost(string, tag = "2")]
pub subnet: ::prost::alloc::string::String,
}
/// Log definition for a Private Connection event.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrivateConnectionEventLog {
/// The private connection resource.
#[prost(message, optional, tag = "1")]
pub private_connection: ::core::option::Option<LoggedPrivateConnection>,
/// Timestamp of the event.
#[prost(message, optional, tag = "2")]
pub occurrence_timestamp: ::core::option::Option<::prost_types::Timestamp>,
/// Event code.
#[prost(int32, tag = "3")]
pub code: i32,
/// Event message.
#[prost(string, tag = "4")]
pub text_message: ::prost::alloc::string::String,
/// Original event data.
#[prost(oneof = "private_connection_event_log::OriginalCause", tags = "200, 201")]
pub original_cause: ::core::option::Option<
private_connection_event_log::OriginalCause,
>,
}
/// Nested message and enum types in `PrivateConnectionEventLog`.
pub mod private_connection_event_log {
/// Original event data.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum OriginalCause {
/// Original event code.
#[prost(int32, tag = "200")]
OriginalCode(i32),
/// Original event message.
#[prost(string, tag = "201")]
OriginalMessage(::prost::alloc::string::String),
}
}
/// The database engines.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DatabaseEngine {
/// The source database engine of the migration job is unknown.
Unspecified = 0,
/// The source engine is MySQL.
Mysql = 1,
/// The source engine is PostgreSQL.
Postgresql = 2,
/// The source engine is SQL Server.
Sqlserver = 3,
/// The source engine is Oracle (for heterogeneous migrations).
Oracle = 4,
/// The engine is Spanner (for heterogeneous migrations).
Spanner = 5,
}
impl DatabaseEngine {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DatabaseEngine::Unspecified => "DATABASE_ENGINE_UNSPECIFIED",
DatabaseEngine::Mysql => "MYSQL",
DatabaseEngine::Postgresql => "POSTGRESQL",
DatabaseEngine::Sqlserver => "SQLSERVER",
DatabaseEngine::Oracle => "ORACLE",
DatabaseEngine::Spanner => "SPANNER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATABASE_ENGINE_UNSPECIFIED" => Some(Self::Unspecified),
"MYSQL" => Some(Self::Mysql),
"POSTGRESQL" => Some(Self::Postgresql),
"SQLSERVER" => Some(Self::Sqlserver),
"ORACLE" => Some(Self::Oracle),
"SPANNER" => Some(Self::Spanner),
_ => None,
}
}
}
/// The database providers.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DatabaseProvider {
/// The database provider is unknown.
Unspecified = 0,
/// CloudSQL runs the database.
Cloudsql = 1,
/// RDS runs the database.
Rds = 2,
/// Amazon Aurora.
Aurora = 3,
/// AlloyDB.
Alloydb = 4,
}
impl DatabaseProvider {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DatabaseProvider::Unspecified => "DATABASE_PROVIDER_UNSPECIFIED",
DatabaseProvider::Cloudsql => "CLOUDSQL",
DatabaseProvider::Rds => "RDS",
DatabaseProvider::Aurora => "AURORA",
DatabaseProvider::Alloydb => "ALLOYDB",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATABASE_PROVIDER_UNSPECIFIED" => Some(Self::Unspecified),
"CLOUDSQL" => Some(Self::Cloudsql),
"RDS" => Some(Self::Rds),
"AURORA" => Some(Self::Aurora),
"ALLOYDB" => Some(Self::Alloydb),
_ => None,
}
}
}