File Coverage

blib/lib/Paws/IoT/UpdateThing.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::IoT::UpdateThing;
3 1     1   648 use Moose;
  1         3  
  1         10  
4             has AttributePayload => (is => 'ro', isa => 'Paws::IoT::AttributePayload');
5             has ExpectedVersion => (is => 'ro', isa => 'Int');
6             has RemoveThingType => (is => 'ro', isa => 'Bool');
7             has ThingName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'thingName' , required => 1);
8             has ThingTypeName => (is => 'ro', isa => 'Str');
9              
10 1     1   7827 use MooseX::ClassAttribute;
  1         3  
  1         11  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateThing');
13             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/things/{thingName}');
14             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::UpdateThingResponse');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::IoT::UpdateThing - Arguments for method UpdateThing on Paws::IoT
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method UpdateThing on the
28             AWS IoT service. Use the attributes of this class
29             as arguments to method UpdateThing.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateThing.
32              
33             As an example:
34              
35             $service_obj->UpdateThing(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 AttributePayload => L<Paws::IoT::AttributePayload>
43              
44             A list of thing attributes, a JSON string containing name-value pairs.
45             For example:
46              
47             C<{\"attributes\":{\"name1\":\"value2\"}}>
48              
49             This data is used to add new attributes or update existing attributes.
50              
51              
52              
53             =head2 ExpectedVersion => Int
54              
55             The expected version of the thing record in the registry. If the
56             version of the record in the registry does not match the expected
57             version specified in the request, the C<UpdateThing> request is
58             rejected with a C<VersionConflictException>.
59              
60              
61              
62             =head2 RemoveThingType => Bool
63              
64             Remove a thing type association. If B<true>, the assocation is removed.
65              
66              
67              
68             =head2 B<REQUIRED> ThingName => Str
69              
70             The name of the thing to update.
71              
72              
73              
74             =head2 ThingTypeName => Str
75              
76             The name of the thing type.
77              
78              
79              
80              
81             =head1 SEE ALSO
82              
83             This class forms part of L<Paws>, documenting arguments for method UpdateThing in L<Paws::IoT>
84              
85             =head1 BUGS and CONTRIBUTIONS
86              
87             The source code is located here: https://github.com/pplu/aws-sdk-perl
88              
89             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
90              
91             =cut
92