| 1 | package Google::Cloud::Sql::V1::CloudSqlBackupRuns::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'SqlBackupRunStatus', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'SqlBackupKind', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'SqlBackupRunType', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'SqlBackupRunsDeleteRequest', | ||
| 20 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest']; | ||
| 21 | |||
| 22 | coerce 'SqlBackupRunsDeleteRequest', | ||
| 23 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest'->new($_) }; | ||
| 24 | |||
| 25 | declare 'RepeatedSqlBackupRunsDeleteRequest', | ||
| 26 | as ArrayRef[SqlBackupRunsDeleteRequest()]; | ||
| 27 | |||
| 28 | coerce 'RepeatedSqlBackupRunsDeleteRequest', | ||
| 29 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest'->new($_) } @$_ ] }; | ||
| 30 | |||
| 31 | declare 'MapStringSqlBackupRunsDeleteRequest', | ||
| 32 | as HashRef[SqlBackupRunsDeleteRequest()]; | ||
| 33 | |||
| 34 | declare 'SqlBackupRunsGetRequest', | ||
| 35 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsGetRequest']; | ||
| 36 | |||
| 37 | coerce 'SqlBackupRunsGetRequest', | ||
| 38 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsGetRequest'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedSqlBackupRunsGetRequest', | ||
| 41 | as ArrayRef[SqlBackupRunsGetRequest()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedSqlBackupRunsGetRequest', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsGetRequest'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringSqlBackupRunsGetRequest', | ||
| 47 | as HashRef[SqlBackupRunsGetRequest()]; | ||
| 48 | |||
| 49 | declare 'SqlBackupRunsInsertRequest', | ||
| 50 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsInsertRequest']; | ||
| 51 | |||
| 52 | coerce 'SqlBackupRunsInsertRequest', | ||
| 53 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsInsertRequest'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedSqlBackupRunsInsertRequest', | ||
| 56 | as ArrayRef[SqlBackupRunsInsertRequest()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedSqlBackupRunsInsertRequest', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsInsertRequest'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringSqlBackupRunsInsertRequest', | ||
| 62 | as HashRef[SqlBackupRunsInsertRequest()]; | ||
| 63 | |||
| 64 | declare 'SqlBackupRunsListRequest', | ||
| 65 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsListRequest']; | ||
| 66 | |||
| 67 | coerce 'SqlBackupRunsListRequest', | ||
| 68 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsListRequest'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedSqlBackupRunsListRequest', | ||
| 71 | as ArrayRef[SqlBackupRunsListRequest()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedSqlBackupRunsListRequest', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsListRequest'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringSqlBackupRunsListRequest', | ||
| 77 | as HashRef[SqlBackupRunsListRequest()]; | ||
| 78 | |||
| 79 | declare 'BackupRun', | ||
| 80 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun']; | ||
| 81 | |||
| 82 | coerce 'BackupRun', | ||
| 83 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedBackupRun', | ||
| 86 | as ArrayRef[BackupRun()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedBackupRun', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringBackupRun', | ||
| 92 | as HashRef[BackupRun()]; | ||
| 93 | |||
| 94 | declare 'BackupRunsListResponse', | ||
| 95 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse']; | ||
| 96 | |||
| 97 | coerce 'BackupRunsListResponse', | ||
| 98 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedBackupRunsListResponse', | ||
| 101 | as ArrayRef[BackupRunsListResponse()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedBackupRunsListResponse', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringBackupRunsListResponse', | ||
| 107 | as HashRef[BackupRunsListResponse()]; | ||
| 108 | |||
| 109 | 1; | ||
| 110 | |||
| 111 | __END__ |