blib/lib/Paws/IoTThingsGraph/UploadEntityDefinitions.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoTThingsGraph::UploadEntityDefinitions;
3 use Moose;
4 has DeprecateExistingEntities => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'deprecateExistingEntities' );
5 has Document => (is => 'ro', isa => 'Paws::IoTThingsGraph::DefinitionDocument', traits => ['NameInRequest'], request_name => 'document' );
6 has SyncWithPublicNamespace => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'syncWithPublicNamespace' );
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UploadEntityDefinitions');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoTThingsGraph::UploadEntityDefinitionsResponse');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::IoTThingsGraph::UploadEntityDefinitions - Arguments for method UploadEntityDefinitions on L<Paws::IoTThingsGraph>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method UploadEntityDefinitions on the
24 L<AWS IoT Things Graph|Paws::IoTThingsGraph> service. Use the attributes of this class
25 as arguments to method UploadEntityDefinitions.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UploadEntityDefinitions.
28  
29 =head1 SYNOPSIS
30  
31 my $iotthingsgraph = Paws->service('IoTThingsGraph');
32 my $UploadEntityDefinitionsResponse =
33 $iotthingsgraph->UploadEntityDefinitions(
34 DeprecateExistingEntities => 1, # OPTIONAL
35 Document => {
36 Language => 'GRAPHQL', # values: GRAPHQL
37 Text => 'MyDefinitionText', # max: 1048576
38  
39 }, # OPTIONAL
40 SyncWithPublicNamespace => 1, # OPTIONAL
41 );
42  
43 # Results:
44 my $UploadId = $UploadEntityDefinitionsResponse->UploadId;
45  
46 # Returns a L<Paws::IoTThingsGraph::UploadEntityDefinitionsResponse> object.
47  
48 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.
49 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph/UploadEntityDefinitions>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 DeprecateExistingEntities => Bool
55  
56 A Boolean that specifies whether to deprecate all entities in the
57 latest version before uploading the new C<DefinitionDocument>. If set
58 to C<true>, the upload will create a new namespace version.
59  
60  
61  
62 =head2 Document => L<Paws::IoTThingsGraph::DefinitionDocument>
63  
64 The C<DefinitionDocument> that defines the updated entities.
65  
66  
67  
68 =head2 SyncWithPublicNamespace => Bool
69  
70 A Boolean that specifies whether to synchronize with the latest version
71 of the public namespace. If set to C<true>, the upload will create a
72 new namespace version.
73  
74  
75  
76  
77 =head1 SEE ALSO
78  
79 This class forms part of L<Paws>, documenting arguments for method UploadEntityDefinitions in L<Paws::IoTThingsGraph>
80  
81 =head1 BUGS and CONTRIBUTIONS
82  
83 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
84  
85 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
86  
87 =cut
88