| 1 | package Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::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 'BlueGreenDeployment', | ||
| 11 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment']; | ||
| 12 | |||
| 13 | coerce 'BlueGreenDeployment', | ||
| 14 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedBlueGreenDeployment', | ||
| 17 | as ArrayRef[BlueGreenDeployment()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedBlueGreenDeployment', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringBlueGreenDeployment', | ||
| 23 | as HashRef[BlueGreenDeployment()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'RequestedConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::RequestedConfig']; | ||
| 30 | |||
| 31 | coerce 'RequestedConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::RequestedConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedRequestedConfig', | ||
| 35 | as ArrayRef[RequestedConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedRequestedConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::RequestedConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringRequestedConfig', | ||
| 41 | as HashRef[RequestedConfig()]; | ||
| 42 | |||
| 43 | declare 'DeploymentTasks', | ||
| 44 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::DeploymentTasks']; | ||
| 45 | |||
| 46 | coerce 'DeploymentTasks', | ||
| 47 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::DeploymentTasks'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedDeploymentTasks', | ||
| 50 | as ArrayRef[DeploymentTasks()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedDeploymentTasks', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::DeploymentTasks'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringDeploymentTasks', | ||
| 56 | as HashRef[DeploymentTasks()]; | ||
| 57 | |||
| 58 | declare 'SourceTargetPairedNode', | ||
| 59 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode']; | ||
| 60 | |||
| 61 | coerce 'SourceTargetPairedNode', | ||
| 62 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedSourceTargetPairedNode', | ||
| 65 | as ArrayRef[SourceTargetPairedNode()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedSourceTargetPairedNode', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringSourceTargetPairedNode', | ||
| 71 | as HashRef[SourceTargetPairedNode()]; | ||
| 72 | |||
| 73 | declare 'State', | ||
| 74 | as (Int | Str); | ||
| 75 | |||
| 76 | declare 'ConfigDiff', | ||
| 77 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::ConfigDiff']; | ||
| 78 | |||
| 79 | coerce 'ConfigDiff', | ||
| 80 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::ConfigDiff'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedConfigDiff', | ||
| 83 | as ArrayRef[ConfigDiff()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedConfigDiff', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::ConfigDiff'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringConfigDiff', | ||
| 89 | as HashRef[ConfigDiff()]; | ||
| 90 | |||
| 91 | declare 'NodeInfo', | ||
| 92 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::NodeInfo']; | ||
| 93 | |||
| 94 | coerce 'NodeInfo', | ||
| 95 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::NodeInfo'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedNodeInfo', | ||
| 98 | as ArrayRef[NodeInfo()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedNodeInfo', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::NodeInfo'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringNodeInfo', | ||
| 104 | as HashRef[NodeInfo()]; | ||
| 105 | |||
| 106 | declare 'DeploymentTask', | ||
| 107 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::DeploymentTask']; | ||
| 108 | |||
| 109 | coerce 'DeploymentTask', | ||
| 110 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::DeploymentTask'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedDeploymentTask', | ||
| 113 | as ArrayRef[DeploymentTask()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedDeploymentTask', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode::DeploymentTask'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringDeploymentTask', | ||
| 119 | as HashRef[DeploymentTask()]; | ||
| 120 | |||
| 121 | declare 'Type', | ||
| 122 | as (Int | Str); | ||
| 123 | |||
| 124 | declare 'State', | ||
| 125 | as (Int | Str); | ||
| 126 | |||
| 127 | declare 'CreateBlueGreenDeploymentRequest', | ||
| 128 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::CreateBlueGreenDeploymentRequest']; | ||
| 129 | |||
| 130 | coerce 'CreateBlueGreenDeploymentRequest', | ||
| 131 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::CreateBlueGreenDeploymentRequest'->new($_) }; | ||
| 132 | |||
| 133 | declare 'RepeatedCreateBlueGreenDeploymentRequest', | ||
| 134 | as ArrayRef[CreateBlueGreenDeploymentRequest()]; | ||
| 135 | |||
| 136 | coerce 'RepeatedCreateBlueGreenDeploymentRequest', | ||
| 137 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::CreateBlueGreenDeploymentRequest'->new($_) } @$_ ] }; | ||
| 138 | |||
| 139 | declare 'MapStringCreateBlueGreenDeploymentRequest', | ||
| 140 | as HashRef[CreateBlueGreenDeploymentRequest()]; | ||
| 141 | |||
| 142 | declare 'GetBlueGreenDeploymentRequest', | ||
| 143 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::GetBlueGreenDeploymentRequest']; | ||
| 144 | |||
| 145 | coerce 'GetBlueGreenDeploymentRequest', | ||
| 146 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::GetBlueGreenDeploymentRequest'->new($_) }; | ||
| 147 | |||
| 148 | declare 'RepeatedGetBlueGreenDeploymentRequest', | ||
| 149 | as ArrayRef[GetBlueGreenDeploymentRequest()]; | ||
| 150 | |||
| 151 | coerce 'RepeatedGetBlueGreenDeploymentRequest', | ||
| 152 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::GetBlueGreenDeploymentRequest'->new($_) } @$_ ] }; | ||
| 153 | |||
| 154 | declare 'MapStringGetBlueGreenDeploymentRequest', | ||
| 155 | as HashRef[GetBlueGreenDeploymentRequest()]; | ||
| 156 | |||
| 157 | declare 'BlueGreenDeploymentView', | ||
| 158 | as (Int | Str); | ||
| 159 | |||
| 160 | declare 'SwitchoverBlueGreenDeploymentRequest', | ||
| 161 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::SwitchoverBlueGreenDeploymentRequest']; | ||
| 162 | |||
| 163 | coerce 'SwitchoverBlueGreenDeploymentRequest', | ||
| 164 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::SwitchoverBlueGreenDeploymentRequest'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedSwitchoverBlueGreenDeploymentRequest', | ||
| 167 | as ArrayRef[SwitchoverBlueGreenDeploymentRequest()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedSwitchoverBlueGreenDeploymentRequest', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::SwitchoverBlueGreenDeploymentRequest'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringSwitchoverBlueGreenDeploymentRequest', | ||
| 173 | as HashRef[SwitchoverBlueGreenDeploymentRequest()]; | ||
| 174 | |||
| 175 | declare 'ListBlueGreenDeploymentsRequest', | ||
| 176 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsRequest']; | ||
| 177 | |||
| 178 | coerce 'ListBlueGreenDeploymentsRequest', | ||
| 179 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsRequest'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedListBlueGreenDeploymentsRequest', | ||
| 182 | as ArrayRef[ListBlueGreenDeploymentsRequest()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedListBlueGreenDeploymentsRequest', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsRequest'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringListBlueGreenDeploymentsRequest', | ||
| 188 | as HashRef[ListBlueGreenDeploymentsRequest()]; | ||
| 189 | |||
| 190 | declare 'ListBlueGreenDeploymentsResponse', | ||
| 191 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsResponse']; | ||
| 192 | |||
| 193 | coerce 'ListBlueGreenDeploymentsResponse', | ||
| 194 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsResponse'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedListBlueGreenDeploymentsResponse', | ||
| 197 | as ArrayRef[ListBlueGreenDeploymentsResponse()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedListBlueGreenDeploymentsResponse', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsResponse'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringListBlueGreenDeploymentsResponse', | ||
| 203 | as HashRef[ListBlueGreenDeploymentsResponse()]; | ||
| 204 | |||
| 205 | declare 'DeleteBlueGreenDeploymentRequest', | ||
| 206 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::DeleteBlueGreenDeploymentRequest']; | ||
| 207 | |||
| 208 | coerce 'DeleteBlueGreenDeploymentRequest', | ||
| 209 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::DeleteBlueGreenDeploymentRequest'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedDeleteBlueGreenDeploymentRequest', | ||
| 212 | as ArrayRef[DeleteBlueGreenDeploymentRequest()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedDeleteBlueGreenDeploymentRequest', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::DeleteBlueGreenDeploymentRequest'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringDeleteBlueGreenDeploymentRequest', | ||
| 218 | as HashRef[DeleteBlueGreenDeploymentRequest()]; | ||
| 219 | |||
| 220 | 1; | ||
| 221 | |||
| 222 | __END__ |