| 1 | package Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::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 'Deployment', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::Deployment']; | ||
| 12 | |||
| 13 | coerce 'Deployment', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::Deployment'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDeployment', | ||
| 17 | as ArrayRef[Deployment()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDeployment', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::Deployment'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDeployment', | ||
| 23 | as HashRef[Deployment()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Result', | ||
| 29 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::Deployment::Result']; | ||
| 30 | |||
| 31 | coerce 'Result', | ||
| 32 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::Deployment::Result'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedResult', | ||
| 35 | as ArrayRef[Result()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedResult', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::Deployment::Result'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringResult', | ||
| 41 | as HashRef[Result()]; | ||
| 42 | |||
| 43 | declare 'ListDeploymentsRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::ListDeploymentsRequest']; | ||
| 45 | |||
| 46 | coerce 'ListDeploymentsRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::ListDeploymentsRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedListDeploymentsRequest', | ||
| 50 | as ArrayRef[ListDeploymentsRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedListDeploymentsRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::ListDeploymentsRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringListDeploymentsRequest', | ||
| 56 | as HashRef[ListDeploymentsRequest()]; | ||
| 57 | |||
| 58 | declare 'ListDeploymentsResponse', | ||
| 59 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::ListDeploymentsResponse']; | ||
| 60 | |||
| 61 | coerce 'ListDeploymentsResponse', | ||
| 62 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::ListDeploymentsResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedListDeploymentsResponse', | ||
| 65 | as ArrayRef[ListDeploymentsResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedListDeploymentsResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::ListDeploymentsResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringListDeploymentsResponse', | ||
| 71 | as HashRef[ListDeploymentsResponse()]; | ||
| 72 | |||
| 73 | declare 'GetDeploymentRequest', | ||
| 74 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::GetDeploymentRequest']; | ||
| 75 | |||
| 76 | coerce 'GetDeploymentRequest', | ||
| 77 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::GetDeploymentRequest'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedGetDeploymentRequest', | ||
| 80 | as ArrayRef[GetDeploymentRequest()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedGetDeploymentRequest', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Deployment::GetDeploymentRequest'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringGetDeploymentRequest', | ||
| 86 | as HashRef[GetDeploymentRequest()]; | ||
| 87 | |||
| 88 | 1; | ||
| 89 | |||
| 90 | __END__ |