| 1 | package Google::Devtools::Cloudprofiler::V2::Profiler::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 'ProfileType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'CreateProfileRequest', | ||
| 14 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::CreateProfileRequest']; | ||
| 15 | |||
| 16 | coerce 'CreateProfileRequest', | ||
| 17 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::CreateProfileRequest'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedCreateProfileRequest', | ||
| 20 | as ArrayRef[CreateProfileRequest()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedCreateProfileRequest', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::CreateProfileRequest'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringCreateProfileRequest', | ||
| 26 | as HashRef[CreateProfileRequest()]; | ||
| 27 | |||
| 28 | declare 'CreateOfflineProfileRequest', | ||
| 29 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::CreateOfflineProfileRequest']; | ||
| 30 | |||
| 31 | coerce 'CreateOfflineProfileRequest', | ||
| 32 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::CreateOfflineProfileRequest'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedCreateOfflineProfileRequest', | ||
| 35 | as ArrayRef[CreateOfflineProfileRequest()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedCreateOfflineProfileRequest', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::CreateOfflineProfileRequest'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringCreateOfflineProfileRequest', | ||
| 41 | as HashRef[CreateOfflineProfileRequest()]; | ||
| 42 | |||
| 43 | declare 'UpdateProfileRequest', | ||
| 44 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::UpdateProfileRequest']; | ||
| 45 | |||
| 46 | coerce 'UpdateProfileRequest', | ||
| 47 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::UpdateProfileRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedUpdateProfileRequest', | ||
| 50 | as ArrayRef[UpdateProfileRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedUpdateProfileRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::UpdateProfileRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringUpdateProfileRequest', | ||
| 56 | as HashRef[UpdateProfileRequest()]; | ||
| 57 | |||
| 58 | declare 'Profile', | ||
| 59 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::Profile']; | ||
| 60 | |||
| 61 | coerce 'Profile', | ||
| 62 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::Profile'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedProfile', | ||
| 65 | as ArrayRef[Profile()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedProfile', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::Profile'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringProfile', | ||
| 71 | as HashRef[Profile()]; | ||
| 72 | |||
| 73 | declare 'LabelsEntry', | ||
| 74 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::Profile::LabelsEntry']; | ||
| 75 | |||
| 76 | coerce 'LabelsEntry', | ||
| 77 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::Profile::LabelsEntry'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedLabelsEntry', | ||
| 80 | as ArrayRef[LabelsEntry()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedLabelsEntry', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::Profile::LabelsEntry'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringLabelsEntry', | ||
| 86 | as HashRef[LabelsEntry()]; | ||
| 87 | |||
| 88 | declare 'Deployment', | ||
| 89 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::Deployment']; | ||
| 90 | |||
| 91 | coerce 'Deployment', | ||
| 92 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::Deployment'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedDeployment', | ||
| 95 | as ArrayRef[Deployment()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedDeployment', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::Deployment'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringDeployment', | ||
| 101 | as HashRef[Deployment()]; | ||
| 102 | |||
| 103 | declare 'LabelsEntry', | ||
| 104 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::Deployment::LabelsEntry']; | ||
| 105 | |||
| 106 | coerce 'LabelsEntry', | ||
| 107 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::Deployment::LabelsEntry'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedLabelsEntry', | ||
| 110 | as ArrayRef[LabelsEntry()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedLabelsEntry', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::Deployment::LabelsEntry'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringLabelsEntry', | ||
| 116 | as HashRef[LabelsEntry()]; | ||
| 117 | |||
| 118 | declare 'ListProfilesRequest', | ||
| 119 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesRequest']; | ||
| 120 | |||
| 121 | coerce 'ListProfilesRequest', | ||
| 122 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedListProfilesRequest', | ||
| 125 | as ArrayRef[ListProfilesRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedListProfilesRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringListProfilesRequest', | ||
| 131 | as HashRef[ListProfilesRequest()]; | ||
| 132 | |||
| 133 | declare 'ListProfilesResponse', | ||
| 134 | as InstanceOf['Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesResponse']; | ||
| 135 | |||
| 136 | coerce 'ListProfilesResponse', | ||
| 137 | from HashRef, via { 'Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesResponse'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedListProfilesResponse', | ||
| 140 | as ArrayRef[ListProfilesResponse()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedListProfilesResponse', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesResponse'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringListProfilesResponse', | ||
| 146 | as HashRef[ListProfilesResponse()]; | ||
| 147 | |||
| 148 | 1; | ||
| 149 | |||
| 150 | __END__ |