blib/lib/Paws/SMS/UpdateApp.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SMS::UpdateApp;
3 use Moose;
4 has AppId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'appId' );
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' );
7 has RoleName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleName' );
8 has ServerGroups => (is => 'ro', isa => 'ArrayRef[Paws::SMS::ServerGroup]', traits => ['NameInRequest'], request_name => 'serverGroups' );
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SMS::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateApp');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SMS::UpdateAppResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::SMS::UpdateApp - Arguments for method UpdateApp on L<Paws::SMS>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateApp on the
27 L<AWS Server Migration Service|Paws::SMS> service. Use the attributes of this class
28 as arguments to method UpdateApp.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateApp.
31  
32 =head1 SYNOPSIS
33  
34 my $sms = Paws->service('SMS');
35 my $UpdateAppResponse = $sms->UpdateApp(
36 AppId => 'MyAppId', # OPTIONAL
37 Description => 'MyAppDescription', # OPTIONAL
38 Name => 'MyAppName', # OPTIONAL
39 RoleName => 'MyRoleName', # OPTIONAL
40 ServerGroups => [
41 {
42 Name => 'MyServerGroupName', # OPTIONAL
43 ServerGroupId => 'MyServerGroupId', # OPTIONAL
44 ServerList => [
45 {
46 ReplicationJobId => 'MyReplicationJobId', # OPTIONAL
47 ReplicationJobTerminated => 1, # OPTIONAL
48 ServerId => 'MyServerId', # OPTIONAL
49 ServerType =>
50 'VIRTUAL_MACHINE', # values: VIRTUAL_MACHINE; OPTIONAL
51 VmServer => {
52 VmManagerName => 'MyVmManagerName', # OPTIONAL
53 VmManagerType =>
54 'VSPHERE', # values: VSPHERE, SCVMM, HYPERV-MANAGER; OPTIONAL
55 VmName => 'MyVmName', # OPTIONAL
56 VmPath => 'MyVmPath', # OPTIONAL
57 VmServerAddress => {
58 VmId => 'MyVmId', # OPTIONAL
59 VmManagerId => 'MyVmManagerId', # OPTIONAL
60 }, # OPTIONAL
61 }, # OPTIONAL
62 },
63 ...
64 ], # OPTIONAL
65 },
66 ...
67 ], # OPTIONAL
68 Tags => [
69 {
70 Key => 'MyTagKey', # OPTIONAL
71 Value => 'MyTagValue', # OPTIONAL
72 },
73 ...
74 ], # OPTIONAL
75 );
76  
77 # Results:
78 my $AppSummary = $UpdateAppResponse->AppSummary;
79 my $ServerGroups = $UpdateAppResponse->ServerGroups;
80 my $Tags = $UpdateAppResponse->Tags;
81  
82 # Returns a L<Paws::SMS::UpdateAppResponse> object.
83  
84 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
85 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sms/UpdateApp>
86  
87 =head1 ATTRIBUTES
88  
89  
90 =head2 AppId => Str
91  
92 The ID of the application.
93  
94  
95  
96 =head2 Description => Str
97  
98 The new description of the application.
99  
100  
101  
102 =head2 Name => Str
103  
104 The new name of the application.
105  
106  
107  
108 =head2 RoleName => Str
109  
110 The name of the service role in the customer's account used by AWS SMS.
111  
112  
113  
114 =head2 ServerGroups => ArrayRef[L<Paws::SMS::ServerGroup>]
115  
116 The server groups in the application to update.
117  
118  
119  
120 =head2 Tags => ArrayRef[L<Paws::SMS::Tag>]
121  
122 The tags to associate with the application.
123  
124  
125  
126  
127 =head1 SEE ALSO
128  
129 This class forms part of L<Paws>, documenting arguments for method UpdateApp in L<Paws::SMS>
130  
131 =head1 BUGS and CONTRIBUTIONS
132  
133 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
134  
135 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
136  
137 =cut
138