| 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="drivelabels_v2.html">Drive Labels API</a> . <a href="drivelabels_v2.limits.html">limits</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#getLabel">getLabel(name=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Get the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title.</p> |
| 83 |
<h3>Method Details</h3> |
| 84 |
<div class="method"> |
| 85 |
<code class="details" id="close">close()</code> |
| 86 |
<pre>Close httplib2 connections.</pre> |
| 87 |
</div> |
| 88 |
|
| 89 |
<div class="method"> |
| 90 |
<code class="details" id="getLabel">getLabel(name=None, x__xgafv=None)</code> |
| 91 |
<pre>Get the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title. |
| 92 |
|
| 93 |
Args: |
| 94 |
name: string, Required. Label revision resource name must be: "limits/label". |
| 95 |
x__xgafv: string, V1 error format. |
| 96 |
Allowed values |
| 97 |
1 - v1 error format |
| 98 |
2 - v2 error format |
| 99 |
|
| 100 |
Returns: |
| 101 |
An object of the form: |
| 102 |
|
| 103 |
{ # Label constraints governing the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title. |
| 104 |
"fieldLimits": { # Field constants governing the structure of a field; such as, the maximum title length, minimum and maximum field values or length, etc. # The limits for fields. |
| 105 |
"dateLimits": { # Limits for date field type. # Date field limits. |
| 106 |
"maxValue": { # 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 # Maximum value for the date field type. |
| 107 |
"day": 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't significant. |
| 108 |
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
| 109 |
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
| 110 |
}, |
| 111 |
"minValue": { # 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 # Minimum value for the date field type. |
| 112 |
"day": 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't significant. |
| 113 |
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
| 114 |
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
| 115 |
}, |
| 116 |
}, |
| 117 |
"integerLimits": { # Limits for integer field type. # Integer field limits. |
| 118 |
"maxValue": "A String", # Maximum value for an integer field type. |
| 119 |
"minValue": "A String", # Minimum value for an integer field type. |
| 120 |
}, |
| 121 |
"longTextLimits": { # Limits for long text field type. # Long text field limits. |
| 122 |
"maxLength": 42, # Maximum length allowed for a long text field type. |
| 123 |
"minLength": 42, # Minimum length allowed for a long text field type. |
| 124 |
}, |
| 125 |
"maxDescriptionLength": 42, # Limits for field description, also called help text. |
| 126 |
"maxDisplayNameLength": 42, # Limits for field title. |
| 127 |
"maxIdLength": 42, # Maximum length for the id. |
| 128 |
"selectionLimits": { # Limits for selection field type. # Selection field limits. |
| 129 |
"listLimits": { # Limits for list-variant of a field type. # Limits for list-variant of a field type. |
| 130 |
"maxEntries": 42, # Maximum number of values allowed for the field type. |
| 131 |
}, |
| 132 |
"maxChoices": 42, # Maximum number of choices. |
| 133 |
"maxDeletedChoices": 42, # Maximum number of deleted choices. |
| 134 |
"maxDisplayNameLength": 42, # Maximum length for display name. |
| 135 |
"maxIdLength": 42, # Maximum ID length for a selection option. |
| 136 |
}, |
| 137 |
"textLimits": { # Limits for text field type. # The relevant limits for the specified Field.Type. Text field limits. |
| 138 |
"maxLength": 42, # Maximum length allowed for a text field type. |
| 139 |
"minLength": 42, # Minimum length allowed for a text field type. |
| 140 |
}, |
| 141 |
"userLimits": { # Limits for Field.Type.USER. # User field limits. |
| 142 |
"listLimits": { # Limits for list-variant of a field type. # Limits for list-variant of a field type. |
| 143 |
"maxEntries": 42, # Maximum number of values allowed for the field type. |
| 144 |
}, |
| 145 |
}, |
| 146 |
}, |
| 147 |
"maxDeletedFields": 42, # The maximum number of published fields that can be deleted. |
| 148 |
"maxDescriptionLength": 42, # The maximum number of characters allowed for the description. |
| 149 |
"maxDraftRevisions": 42, # The maximum number of draft revisions that will be kept before deleting old drafts. |
| 150 |
"maxFields": 42, # The maximum number of fields allowed within the label. |
| 151 |
"maxTitleLength": 42, # The maximum number of characters allowed for the title. |
| 152 |
"name": "A String", # Resource name. |
| 153 |
}</pre> |
| 154 |
</div> |
| 155 |
|
| 156 |
</body></html> |