Debian Codegraph @

docs/dyn/checks_v1alpha.privacypolicy.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="checks_v1alpha.html">Checks API</a> . <a href="checks_v1alpha.privacypolicy.html">privacypolicy</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#analyze">analyze(body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Performs a synchronous analysis of a privacy policy, where the policy content is mapped to privacy categories, data types, and purposes.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <h3>Method Details</h3>
84 <div class="method">
85 <code class="details" id="analyze">analyze(body=None, x__xgafv=None)</code>
86 <pre>Performs a synchronous analysis of a privacy policy, where the policy content is mapped to privacy categories, data types, and purposes.
87
88 Args:
89 body: object, The request body.
90 The object takes the form of:
91
92 { # Request for the AnalyzePrivacyPolicy method.
93 &quot;privacyPolicyPageContent&quot;: &quot;A String&quot;, # The HTML content of the privacy policy. This is useful if you&#x27;d like to manage the crawling and rendering of the privacy policy.
94 &quot;privacyPolicyUri&quot;: &quot;A String&quot;, # The URI that points to the web page for the privacy policy.
95 }
96
97 x__xgafv: string, V1 error format.
98 Allowed values
99 1 - v1 error format
100 2 - v2 error format
101
102 Returns:
103 An object of the form:
104
105 { # Response containing the analyzed privacy policy for the AnalyzePrivacyPolicy method.
106 &quot;dataPurposeAnnotations&quot;: [ # A list of detected purposes in the privacy policy.
107 {
108 &quot;endOffset&quot;: &quot;A String&quot;, # Byte offsets for the end of the purpose of use sentence inside the full text.
109 &quot;purposeOfUse&quot;: &quot;A String&quot;, # Purpose of use mentioned in the policy.
110 &quot;score&quot;: 3.14, # Score given by the model representing how confident it was regarding this `text_content` being of `purpose_of_use`.
111 &quot;startOffset&quot;: &quot;A String&quot;, # Byte offsets for the start of the purpose of use sentence inside the full text.
112 &quot;textContent&quot;: &quot;A String&quot;, # The bytes of actual text content in the sentence that mentions the purpose of use. This makes it much easier to consume the information.
113 },
114 ],
115 &quot;dataTypeAnnotations&quot;: [ # A list of detected data types in the privacy policy.
116 {
117 &quot;dataType&quot;: &quot;A String&quot;, # Type of the data mentioned in the policy.
118 &quot;endOffset&quot;: &quot;A String&quot;, # Byte offsets for the end of the data type sentence inside the full text.
119 &quot;score&quot;: 3.14, # Score given by the model representing how confident it was regarding this `text_content` being of `data_type`.
120 &quot;startOffset&quot;: &quot;A String&quot;, # Byte offsets for the start of the data type sentence inside the full text.
121 &quot;textContent&quot;: &quot;A String&quot;, # Actual text content in the section. This makes it much easier to consume the information. NOTE: This field might contain HTML and does not guarantee a SafeHtml security contract go/safehtmltypecontracts#safehtml.
122 },
123 ],
124 &quot;htmlContent&quot;: &quot;A String&quot;, # HTML content for the privacy policy page. The byte offsets in each annotated section will match this content.
125 &quot;lastUpdatedDateInfo&quot;: { # Information about the date when the privacy policy was last updated. # Information about the date when the privacy policy was last updated.
126 &quot;endOffset&quot;: &quot;A String&quot;, # Byte offsets for the end of the date text inside the full text.
127 &quot;lastUpdatedDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date when the privacy policy was last updated.
128 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
129 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
130 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
131 },
132 &quot;startOffset&quot;: &quot;A String&quot;, # Byte offsets for the start of the date text inside the full text.
133 &quot;textContent&quot;: &quot;A String&quot;, # The bytes of actual text content in the section. Note: - This will correspond to the whole sentence that includes the date. - This field might contain HTML and it is not sanitized.
134 },
135 &quot;sectionAnnotations&quot;: [ # A list of detected topics in the privacy policy.
136 {
137 &quot;endOffset&quot;: &quot;A String&quot;, # Byte offsets for the end of the section inside the full text.
138 &quot;score&quot;: 3.14, # Score given by the model representing how confident it was regarding this `text_content` being of `section_type`.
139 &quot;sectionType&quot;: &quot;A String&quot;, # Detected type of the high-level topic in the policy.
140 &quot;startOffset&quot;: &quot;A String&quot;, # Byte offsets for the start of the section inside the full text.
141 &quot;textContent&quot;: &quot;A String&quot;, # Actual text content in the section.
142 },
143 ],
144 }</pre>
145 </div>
146
147 <div class="method">
148 <code class="details" id="close">close()</code>
149 <pre>Close httplib2 connections.</pre>
150 </div>
151
152 </body></html>