blib/lib/Paws/S3/DeleteObjectTagging.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::S3::DeleteObjectTagging;
3 use Moose;
4 has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
5 has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']);
6 has Key => (is => 'ro', isa => 'Str', uri_name => 'Key', traits => ['ParamInURI'], required => 1);
7 has VersionId => (is => 'ro', isa => 'Str', query_name => 'versionId', traits => ['ParamInQuery']);
8  
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteObjectTagging');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}/{Key+}?tagging');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'DELETE');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::S3::DeleteObjectTaggingOutput');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17
18
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::S3::DeleteObjectTagging - Arguments for method DeleteObjectTagging on L<Paws::S3>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method DeleteObjectTagging on the
30 L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class
31 as arguments to method DeleteObjectTagging.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteObjectTagging.
34  
35 =head1 SYNOPSIS
36  
37 my $s3 = Paws->service('S3');
38 # To remove tag set from an object version
39 # The following example removes tag set associated with the specified object
40 # version. The request specifies both the object key and object version.
41 my $DeleteObjectTaggingOutput = $s3->DeleteObjectTagging(
42 'Bucket' => 'examplebucket',
43 'Key' => 'HappyFace.jpg',
44 'VersionId' => 'ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI'
45 );
46  
47 # Results:
48 my $VersionId = $DeleteObjectTaggingOutput->VersionId;
49  
50 # Returns a L<Paws::S3::DeleteObjectTaggingOutput> object.
51 # To remove tag set from an object
52 # The following example removes tag set associated with the specified object. If
53 # the bucket is versioning enabled, the operation removes tag set from the
54 # latest object version.
55 my $DeleteObjectTaggingOutput = $s3->DeleteObjectTagging(
56 'Bucket' => 'examplebucket',
57 'Key' => 'HappyFace.jpg'
58 );
59  
60 # Results:
61 my $VersionId = $DeleteObjectTaggingOutput->VersionId;
62  
63 # Returns a L<Paws::S3::DeleteObjectTaggingOutput> object.
64  
65 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.
66 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/DeleteObjectTagging>
67  
68 =head1 ATTRIBUTES
69  
70  
71 =head2 B<REQUIRED> Bucket => Str
72  
73 The bucket name containing the objects from which to remove the tags.
74  
75 When using this action with an access point, you must direct requests
76 to the access point hostname. The access point hostname takes the form
77 I<AccessPointName>-I<AccountId>.s3-accesspoint.I<Region>.amazonaws.com.
78 When using this action with an access point through the AWS SDKs, you
79 provide the access point ARN in place of the bucket name. For more
80 information about access point ARNs, see Using access points
81 (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html)
82 in the I<Amazon S3 User Guide>.
83  
84 When using this action with Amazon S3 on Outposts, you must direct
85 requests to the S3 on Outposts hostname. The S3 on Outposts hostname
86 takes the form
87 I<AccessPointName>-I<AccountId>.I<outpostID>.s3-outposts.I<Region>.amazonaws.com.
88 When using this action using S3 on Outposts through the AWS SDKs, you
89 provide the Outposts bucket ARN in place of the bucket name. For more
90 information about S3 on Outposts ARNs, see Using S3 on Outposts
91 (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html)
92 in the I<Amazon S3 User Guide>.
93  
94  
95  
96 =head2 ExpectedBucketOwner => Str
97  
98 The account ID of the expected bucket owner. If the bucket is owned by
99 a different account, the request will fail with an HTTP C<403 (Access
100 Denied)> error.
101  
102  
103  
104 =head2 B<REQUIRED> Key => Str
105  
106 The key that identifies the object in the bucket from which to remove
107 all tags.
108  
109  
110  
111 =head2 VersionId => Str
112  
113 The versionId of the object that the tag-set will be removed from.
114  
115  
116  
117  
118 =head1 SEE ALSO
119  
120 This class forms part of L<Paws>, documenting arguments for method DeleteObjectTagging in L<Paws::S3>
121  
122 =head1 BUGS and CONTRIBUTIONS
123  
124 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
125  
126 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
127  
128 =cut
129