| 1 | package Google::Cloud::Netapp::V1::Backup::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 'Backup', | ||
| 11 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::Backup']; | ||
| 12 | |||
| 13 | coerce 'Backup', | ||
| 14 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::Backup'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedBackup', | ||
| 17 | as ArrayRef[Backup()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedBackup', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::Backup'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringBackup', | ||
| 23 | as HashRef[Backup()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Type', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'LabelsEntry', | ||
| 32 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::Backup::LabelsEntry']; | ||
| 33 | |||
| 34 | coerce 'LabelsEntry', | ||
| 35 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::Backup::LabelsEntry'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedLabelsEntry', | ||
| 38 | as ArrayRef[LabelsEntry()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedLabelsEntry', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::Backup::LabelsEntry'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringLabelsEntry', | ||
| 44 | as HashRef[LabelsEntry()]; | ||
| 45 | |||
| 46 | declare 'ListBackupsRequest', | ||
| 47 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::ListBackupsRequest']; | ||
| 48 | |||
| 49 | coerce 'ListBackupsRequest', | ||
| 50 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::ListBackupsRequest'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedListBackupsRequest', | ||
| 53 | as ArrayRef[ListBackupsRequest()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedListBackupsRequest', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::ListBackupsRequest'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringListBackupsRequest', | ||
| 59 | as HashRef[ListBackupsRequest()]; | ||
| 60 | |||
| 61 | declare 'ListBackupsResponse', | ||
| 62 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::ListBackupsResponse']; | ||
| 63 | |||
| 64 | coerce 'ListBackupsResponse', | ||
| 65 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::ListBackupsResponse'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedListBackupsResponse', | ||
| 68 | as ArrayRef[ListBackupsResponse()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedListBackupsResponse', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::ListBackupsResponse'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringListBackupsResponse', | ||
| 74 | as HashRef[ListBackupsResponse()]; | ||
| 75 | |||
| 76 | declare 'GetBackupRequest', | ||
| 77 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::GetBackupRequest']; | ||
| 78 | |||
| 79 | coerce 'GetBackupRequest', | ||
| 80 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::GetBackupRequest'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedGetBackupRequest', | ||
| 83 | as ArrayRef[GetBackupRequest()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedGetBackupRequest', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::GetBackupRequest'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringGetBackupRequest', | ||
| 89 | as HashRef[GetBackupRequest()]; | ||
| 90 | |||
| 91 | declare 'CreateBackupRequest', | ||
| 92 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::CreateBackupRequest']; | ||
| 93 | |||
| 94 | coerce 'CreateBackupRequest', | ||
| 95 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::CreateBackupRequest'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedCreateBackupRequest', | ||
| 98 | as ArrayRef[CreateBackupRequest()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedCreateBackupRequest', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::CreateBackupRequest'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringCreateBackupRequest', | ||
| 104 | as HashRef[CreateBackupRequest()]; | ||
| 105 | |||
| 106 | declare 'DeleteBackupRequest', | ||
| 107 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::DeleteBackupRequest']; | ||
| 108 | |||
| 109 | coerce 'DeleteBackupRequest', | ||
| 110 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::DeleteBackupRequest'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedDeleteBackupRequest', | ||
| 113 | as ArrayRef[DeleteBackupRequest()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedDeleteBackupRequest', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::DeleteBackupRequest'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringDeleteBackupRequest', | ||
| 119 | as HashRef[DeleteBackupRequest()]; | ||
| 120 | |||
| 121 | declare 'UpdateBackupRequest', | ||
| 122 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::UpdateBackupRequest']; | ||
| 123 | |||
| 124 | coerce 'UpdateBackupRequest', | ||
| 125 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::UpdateBackupRequest'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedUpdateBackupRequest', | ||
| 128 | as ArrayRef[UpdateBackupRequest()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedUpdateBackupRequest', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::UpdateBackupRequest'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringUpdateBackupRequest', | ||
| 134 | as HashRef[UpdateBackupRequest()]; | ||
| 135 | |||
| 136 | declare 'OntapSource', | ||
| 137 | as InstanceOf['Google::Cloud::Netapp::V1::Backup::OntapSource']; | ||
| 138 | |||
| 139 | coerce 'OntapSource', | ||
| 140 | from HashRef, via { 'Google::Cloud::Netapp::V1::Backup::OntapSource'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedOntapSource', | ||
| 143 | as ArrayRef[OntapSource()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedOntapSource', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Netapp::V1::Backup::OntapSource'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringOntapSource', | ||
| 149 | as HashRef[OntapSource()]; | ||
| 150 | |||
| 151 | 1; | ||
| 152 | |||
| 153 | __END__ |