V1/Service/Types.pm untested

filter: Statementstmt 0.0% 0 / 71 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 76 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Agentregistry::V1::Service::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 'Service',
11 as InstanceOf['Google::Cloud::Agentregistry::V1::Service::Service'];
12  
13 coerce 'Service',
14 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Service::Service'->new($_) };
15  
16 declare 'RepeatedService',
17 as ArrayRef[Service()];
18  
19 coerce 'RepeatedService',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Service::Service'->new($_) } @$_ ] };
21  
22 declare 'MapStringService',
23 as HashRef[Service()];
24  
25 declare 'AgentSpec',
26 as InstanceOf['Google::Cloud::Agentregistry::V1::Service::Service::AgentSpec'];
27  
28 coerce 'AgentSpec',
29 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Service::Service::AgentSpec'->new($_) };
30  
31 declare 'RepeatedAgentSpec',
32 as ArrayRef[AgentSpec()];
33  
34 coerce 'RepeatedAgentSpec',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Service::Service::AgentSpec'->new($_) } @$_ ] };
36  
37 declare 'MapStringAgentSpec',
38 as HashRef[AgentSpec()];
39  
40 declare 'Type',
41 as (Int | Str);
42  
43 declare 'McpServerSpec',
44 as InstanceOf['Google::Cloud::Agentregistry::V1::Service::Service::McpServerSpec'];
45  
46 coerce 'McpServerSpec',
47 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Service::Service::McpServerSpec'->new($_) };
48  
49 declare 'RepeatedMcpServerSpec',
50 as ArrayRef[McpServerSpec()];
51  
52 coerce 'RepeatedMcpServerSpec',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Service::Service::McpServerSpec'->new($_) } @$_ ] };
54  
55 declare 'MapStringMcpServerSpec',
56 as HashRef[McpServerSpec()];
57  
58 declare 'Type',
59 as (Int | Str);
60  
61 declare 'EndpointSpec',
62 as InstanceOf['Google::Cloud::Agentregistry::V1::Service::Service::EndpointSpec'];
63  
64 coerce 'EndpointSpec',
65 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Service::Service::EndpointSpec'->new($_) };
66  
67 declare 'RepeatedEndpointSpec',
68 as ArrayRef[EndpointSpec()];
69  
70 coerce 'RepeatedEndpointSpec',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Service::Service::EndpointSpec'->new($_) } @$_ ] };
72  
73 declare 'MapStringEndpointSpec',
74 as HashRef[EndpointSpec()];
75  
76 declare 'Type',
77 as (Int | Str);
78  
79 1;
80  
81 __END__