OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.storage.v1; | 3 library googleapis.storage.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 uploadMedia: _uploadMedia, | 1559 uploadMedia: _uploadMedia, |
1560 downloadOptions: _downloadOptions); | 1560 downloadOptions: _downloadOptions); |
1561 return _response.then((data) => new Notification.fromJson(data)); | 1561 return _response.then((data) => new Notification.fromJson(data)); |
1562 } | 1562 } |
1563 | 1563 |
1564 /** | 1564 /** |
1565 * Retrieves a list of notification subscriptions for a given bucket. | 1565 * Retrieves a list of notification subscriptions for a given bucket. |
1566 * | 1566 * |
1567 * Request parameters: | 1567 * Request parameters: |
1568 * | 1568 * |
1569 * [bucket] - Name of a GCS bucket. | 1569 * [bucket] - Name of a Google Cloud Storage bucket. |
1570 * | 1570 * |
1571 * [userProject] - The project to be billed for this request, for Requester | 1571 * [userProject] - The project to be billed for this request, for Requester |
1572 * Pays buckets. | 1572 * Pays buckets. |
1573 * | 1573 * |
1574 * Completes with a [Notifications]. | 1574 * Completes with a [Notifications]. |
1575 * | 1575 * |
1576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1577 * error. | 1577 * error. |
1578 * | 1578 * |
1579 * If the used [http.Client] completes with an error when making a REST call, | 1579 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 * team owners get OWNER access. | 2033 * team owners get OWNER access. |
2034 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team | 2034 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team |
2035 * owners get READER access. | 2035 * owners get READER access. |
2036 * - "private" : Object owner gets OWNER access. | 2036 * - "private" : Object owner gets OWNER access. |
2037 * - "projectPrivate" : Object owner gets OWNER access, and project team | 2037 * - "projectPrivate" : Object owner gets OWNER access, and project team |
2038 * members get access according to their roles. | 2038 * members get access according to their roles. |
2039 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 2039 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
2040 * access. | 2040 * access. |
2041 * | 2041 * |
2042 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2042 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2043 * object's current generation matches the given value. | 2043 * object's current generation matches the given value. Setting to 0 makes the |
| 2044 * operation succeed only if there are no live versions of the object. |
2044 * | 2045 * |
2045 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2046 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2046 * object's current metageneration matches the given value. | 2047 * object's current metageneration matches the given value. |
2047 * | 2048 * |
2048 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form | 2049 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form |
2049 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that | 2050 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
2050 * will be used to encrypt the object. Overrides the object metadata's | 2051 * will be used to encrypt the object. Overrides the object metadata's |
2051 * kms_key_name value, if any. | 2052 * kms_key_name value, if any. |
2052 * | 2053 * |
2053 * [userProject] - The project to be billed for this request, for Requester | 2054 * [userProject] - The project to be billed for this request, for Requester |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 * team owners get OWNER access. | 2153 * team owners get OWNER access. |
2153 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team | 2154 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team |
2154 * owners get READER access. | 2155 * owners get READER access. |
2155 * - "private" : Object owner gets OWNER access. | 2156 * - "private" : Object owner gets OWNER access. |
2156 * - "projectPrivate" : Object owner gets OWNER access, and project team | 2157 * - "projectPrivate" : Object owner gets OWNER access, and project team |
2157 * members get access according to their roles. | 2158 * members get access according to their roles. |
2158 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 2159 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
2159 * access. | 2160 * access. |
2160 * | 2161 * |
2161 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2162 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2162 * destination object's current generation matches the given value. | 2163 * destination object's current generation matches the given value. Setting to |
| 2164 * 0 makes the operation succeed only if there are no live versions of the |
| 2165 * object. |
2163 * | 2166 * |
2164 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2167 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2165 * destination object's current generation does not match the given value. | 2168 * destination object's current generation does not match the given value. If |
| 2169 * no live object exists, the precondition fails. Setting to 0 makes the |
| 2170 * operation succeed only if there is a live version of the object. |
2166 * | 2171 * |
2167 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2172 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2168 * destination object's current metageneration matches the given value. | 2173 * destination object's current metageneration matches the given value. |
2169 * | 2174 * |
2170 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2175 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2171 * destination object's current metageneration does not match the given value. | 2176 * destination object's current metageneration does not match the given value. |
2172 * | 2177 * |
2173 * [ifSourceGenerationMatch] - Makes the operation conditional on whether the | 2178 * [ifSourceGenerationMatch] - Makes the operation conditional on whether the |
2174 * source object's generation matches the given value. | 2179 * source object's current generation matches the given value. |
2175 * | 2180 * |
2176 * [ifSourceGenerationNotMatch] - Makes the operation conditional on whether | 2181 * [ifSourceGenerationNotMatch] - Makes the operation conditional on whether |
2177 * the source object's generation does not match the given value. | 2182 * the source object's current generation does not match the given value. |
2178 * | 2183 * |
2179 * [ifSourceMetagenerationMatch] - Makes the operation conditional on whether | 2184 * [ifSourceMetagenerationMatch] - Makes the operation conditional on whether |
2180 * the source object's current metageneration matches the given value. | 2185 * the source object's current metageneration matches the given value. |
2181 * | 2186 * |
2182 * [ifSourceMetagenerationNotMatch] - Makes the operation conditional on | 2187 * [ifSourceMetagenerationNotMatch] - Makes the operation conditional on |
2183 * whether the source object's current metageneration does not match the given | 2188 * whether the source object's current metageneration does not match the given |
2184 * value. | 2189 * value. |
2185 * | 2190 * |
2186 * [projection] - Set of properties to return. Defaults to noAcl, unless the | 2191 * [projection] - Set of properties to return. Defaults to noAcl, unless the |
2187 * object resource specifies the acl property, when it defaults to full. | 2192 * object resource specifies the acl property, when it defaults to full. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 * | 2303 * |
2299 * [bucket] - Name of the bucket in which the object resides. | 2304 * [bucket] - Name of the bucket in which the object resides. |
2300 * | 2305 * |
2301 * [object] - Name of the object. For information about how to URL encode | 2306 * [object] - Name of the object. For information about how to URL encode |
2302 * object names to be path safe, see Encoding URI Path Parts. | 2307 * object names to be path safe, see Encoding URI Path Parts. |
2303 * | 2308 * |
2304 * [generation] - If present, permanently deletes a specific revision of this | 2309 * [generation] - If present, permanently deletes a specific revision of this |
2305 * object (as opposed to the latest version, the default). | 2310 * object (as opposed to the latest version, the default). |
2306 * | 2311 * |
2307 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2312 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2308 * object's current generation matches the given value. | 2313 * object's current generation matches the given value. Setting to 0 makes the |
| 2314 * operation succeed only if there are no live versions of the object. |
2309 * | 2315 * |
2310 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2316 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2311 * object's current generation does not match the given value. | 2317 * object's current generation does not match the given value. If no live |
| 2318 * object exists, the precondition fails. Setting to 0 makes the operation |
| 2319 * succeed only if there is a live version of the object. |
2312 * | 2320 * |
2313 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2321 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2314 * object's current metageneration matches the given value. | 2322 * object's current metageneration matches the given value. |
2315 * | 2323 * |
2316 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2324 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2317 * object's current metageneration does not match the given value. | 2325 * object's current metageneration does not match the given value. |
2318 * | 2326 * |
2319 * [userProject] - The project to be billed for this request, for Requester | 2327 * [userProject] - The project to be billed for this request, for Requester |
2320 * Pays buckets. | 2328 * Pays buckets. |
2321 * | 2329 * |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2379 * | 2387 * |
2380 * [bucket] - Name of the bucket in which the object resides. | 2388 * [bucket] - Name of the bucket in which the object resides. |
2381 * | 2389 * |
2382 * [object] - Name of the object. For information about how to URL encode | 2390 * [object] - Name of the object. For information about how to URL encode |
2383 * object names to be path safe, see Encoding URI Path Parts. | 2391 * object names to be path safe, see Encoding URI Path Parts. |
2384 * | 2392 * |
2385 * [generation] - If present, selects a specific revision of this object (as | 2393 * [generation] - If present, selects a specific revision of this object (as |
2386 * opposed to the latest version, the default). | 2394 * opposed to the latest version, the default). |
2387 * | 2395 * |
2388 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2396 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2389 * object's generation matches the given value. | 2397 * object's current generation matches the given value. Setting to 0 makes the |
| 2398 * operation succeed only if there are no live versions of the object. |
2390 * | 2399 * |
2391 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2400 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2392 * object's generation does not match the given value. | 2401 * object's current generation does not match the given value. If no live |
| 2402 * object exists, the precondition fails. Setting to 0 makes the operation |
| 2403 * succeed only if there is a live version of the object. |
2393 * | 2404 * |
2394 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2405 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2395 * object's current metageneration matches the given value. | 2406 * object's current metageneration matches the given value. |
2396 * | 2407 * |
2397 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2408 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2398 * object's current metageneration does not match the given value. | 2409 * object's current metageneration does not match the given value. |
2399 * | 2410 * |
2400 * [projection] - Set of properties to return. Defaults to noAcl. | 2411 * [projection] - Set of properties to return. Defaults to noAcl. |
2401 * Possible string values are: | 2412 * Possible string values are: |
2402 * - "full" : Include all properties. | 2413 * - "full" : Include all properties. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2543 * [bucket] - Name of the bucket in which to store the new object. Overrides | 2554 * [bucket] - Name of the bucket in which to store the new object. Overrides |
2544 * the provided object metadata's bucket value, if any. | 2555 * the provided object metadata's bucket value, if any. |
2545 * | 2556 * |
2546 * [contentEncoding] - If set, sets the contentEncoding property of the final | 2557 * [contentEncoding] - If set, sets the contentEncoding property of the final |
2547 * object to this value. Setting this parameter is equivalent to setting the | 2558 * object to this value. Setting this parameter is equivalent to setting the |
2548 * contentEncoding metadata property. This can be useful when uploading an | 2559 * contentEncoding metadata property. This can be useful when uploading an |
2549 * object with uploadType=media to indicate the encoding of the content being | 2560 * object with uploadType=media to indicate the encoding of the content being |
2550 * uploaded. | 2561 * uploaded. |
2551 * | 2562 * |
2552 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2563 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2553 * object's current generation matches the given value. | 2564 * object's current generation matches the given value. Setting to 0 makes the |
| 2565 * operation succeed only if there are no live versions of the object. |
2554 * | 2566 * |
2555 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2567 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2556 * object's current generation does not match the given value. | 2568 * object's current generation does not match the given value. If no live |
| 2569 * object exists, the precondition fails. Setting to 0 makes the operation |
| 2570 * succeed only if there is a live version of the object. |
2557 * | 2571 * |
2558 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2572 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2559 * object's current metageneration matches the given value. | 2573 * object's current metageneration matches the given value. |
2560 * | 2574 * |
2561 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2575 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2562 * object's current metageneration does not match the given value. | 2576 * object's current metageneration does not match the given value. |
2563 * | 2577 * |
2564 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form | 2578 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form |
2565 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that | 2579 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
2566 * will be used to encrypt the object. Overrides the object metadata's | 2580 * will be used to encrypt the object. Overrides the object metadata's |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2785 * | 2799 * |
2786 * [bucket] - Name of the bucket in which the object resides. | 2800 * [bucket] - Name of the bucket in which the object resides. |
2787 * | 2801 * |
2788 * [object] - Name of the object. For information about how to URL encode | 2802 * [object] - Name of the object. For information about how to URL encode |
2789 * object names to be path safe, see Encoding URI Path Parts. | 2803 * object names to be path safe, see Encoding URI Path Parts. |
2790 * | 2804 * |
2791 * [generation] - If present, selects a specific revision of this object (as | 2805 * [generation] - If present, selects a specific revision of this object (as |
2792 * opposed to the latest version, the default). | 2806 * opposed to the latest version, the default). |
2793 * | 2807 * |
2794 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2808 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2795 * object's current generation matches the given value. | 2809 * object's current generation matches the given value. Setting to 0 makes the |
| 2810 * operation succeed only if there are no live versions of the object. |
2796 * | 2811 * |
2797 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2812 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2798 * object's current generation does not match the given value. | 2813 * object's current generation does not match the given value. If no live |
| 2814 * object exists, the precondition fails. Setting to 0 makes the operation |
| 2815 * succeed only if there is a live version of the object. |
2799 * | 2816 * |
2800 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2817 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2801 * object's current metageneration matches the given value. | 2818 * object's current metageneration matches the given value. |
2802 * | 2819 * |
2803 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2820 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2804 * object's current metageneration does not match the given value. | 2821 * object's current metageneration does not match the given value. |
2805 * | 2822 * |
2806 * [predefinedAcl] - Apply a predefined set of access controls to this object. | 2823 * [predefinedAcl] - Apply a predefined set of access controls to this object. |
2807 * Possible string values are: | 2824 * Possible string values are: |
2808 * - "authenticatedRead" : Object owner gets OWNER access, and | 2825 * - "authenticatedRead" : Object owner gets OWNER access, and |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2922 * team owners get OWNER access. | 2939 * team owners get OWNER access. |
2923 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team | 2940 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team |
2924 * owners get READER access. | 2941 * owners get READER access. |
2925 * - "private" : Object owner gets OWNER access. | 2942 * - "private" : Object owner gets OWNER access. |
2926 * - "projectPrivate" : Object owner gets OWNER access, and project team | 2943 * - "projectPrivate" : Object owner gets OWNER access, and project team |
2927 * members get access according to their roles. | 2944 * members get access according to their roles. |
2928 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 2945 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
2929 * access. | 2946 * access. |
2930 * | 2947 * |
2931 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2948 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2932 * destination object's current generation matches the given value. | 2949 * object's current generation matches the given value. Setting to 0 makes the |
| 2950 * operation succeed only if there are no live versions of the object. |
2933 * | 2951 * |
2934 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2952 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2935 * destination object's current generation does not match the given value. | 2953 * object's current generation does not match the given value. If no live |
| 2954 * object exists, the precondition fails. Setting to 0 makes the operation |
| 2955 * succeed only if there is a live version of the object. |
2936 * | 2956 * |
2937 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2957 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2938 * destination object's current metageneration matches the given value. | 2958 * destination object's current metageneration matches the given value. |
2939 * | 2959 * |
2940 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2960 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2941 * destination object's current metageneration does not match the given value. | 2961 * destination object's current metageneration does not match the given value. |
2942 * | 2962 * |
2943 * [ifSourceGenerationMatch] - Makes the operation conditional on whether the | 2963 * [ifSourceGenerationMatch] - Makes the operation conditional on whether the |
2944 * source object's generation matches the given value. | 2964 * source object's current generation matches the given value. |
2945 * | 2965 * |
2946 * [ifSourceGenerationNotMatch] - Makes the operation conditional on whether | 2966 * [ifSourceGenerationNotMatch] - Makes the operation conditional on whether |
2947 * the source object's generation does not match the given value. | 2967 * the source object's current generation does not match the given value. |
2948 * | 2968 * |
2949 * [ifSourceMetagenerationMatch] - Makes the operation conditional on whether | 2969 * [ifSourceMetagenerationMatch] - Makes the operation conditional on whether |
2950 * the source object's current metageneration matches the given value. | 2970 * the source object's current metageneration matches the given value. |
2951 * | 2971 * |
2952 * [ifSourceMetagenerationNotMatch] - Makes the operation conditional on | 2972 * [ifSourceMetagenerationNotMatch] - Makes the operation conditional on |
2953 * whether the source object's current metageneration does not match the given | 2973 * whether the source object's current metageneration does not match the given |
2954 * value. | 2974 * value. |
2955 * | 2975 * |
2956 * [maxBytesRewrittenPerCall] - The maximum number of bytes that will be | 2976 * [maxBytesRewrittenPerCall] - The maximum number of bytes that will be |
2957 * rewritten per rewrite request. Most callers shouldn't need to specify this | 2977 * rewritten per rewrite request. Most callers shouldn't need to specify this |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3203 * | 3223 * |
3204 * [bucket] - Name of the bucket in which the object resides. | 3224 * [bucket] - Name of the bucket in which the object resides. |
3205 * | 3225 * |
3206 * [object] - Name of the object. For information about how to URL encode | 3226 * [object] - Name of the object. For information about how to URL encode |
3207 * object names to be path safe, see Encoding URI Path Parts. | 3227 * object names to be path safe, see Encoding URI Path Parts. |
3208 * | 3228 * |
3209 * [generation] - If present, selects a specific revision of this object (as | 3229 * [generation] - If present, selects a specific revision of this object (as |
3210 * opposed to the latest version, the default). | 3230 * opposed to the latest version, the default). |
3211 * | 3231 * |
3212 * [ifGenerationMatch] - Makes the operation conditional on whether the | 3232 * [ifGenerationMatch] - Makes the operation conditional on whether the |
3213 * object's current generation matches the given value. | 3233 * object's current generation matches the given value. Setting to 0 makes the |
| 3234 * operation succeed only if there are no live versions of the object. |
3214 * | 3235 * |
3215 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 3236 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
3216 * object's current generation does not match the given value. | 3237 * object's current generation does not match the given value. If no live |
| 3238 * object exists, the precondition fails. Setting to 0 makes the operation |
| 3239 * succeed only if there is a live version of the object. |
3217 * | 3240 * |
3218 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 3241 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
3219 * object's current metageneration matches the given value. | 3242 * object's current metageneration matches the given value. |
3220 * | 3243 * |
3221 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 3244 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
3222 * object's current metageneration does not match the given value. | 3245 * object's current metageneration does not match the given value. |
3223 * | 3246 * |
3224 * [predefinedAcl] - Apply a predefined set of access controls to this object. | 3247 * [predefinedAcl] - Apply a predefined set of access controls to this object. |
3225 * Possible string values are: | 3248 * Possible string values are: |
3226 * - "authenticatedRead" : Object owner gets OWNER access, and | 3249 * - "authenticatedRead" : Object owner gets OWNER access, and |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3425 } | 3448 } |
3426 | 3449 |
3427 | 3450 |
3428 class ProjectsServiceAccountResourceApi { | 3451 class ProjectsServiceAccountResourceApi { |
3429 final commons.ApiRequester _requester; | 3452 final commons.ApiRequester _requester; |
3430 | 3453 |
3431 ProjectsServiceAccountResourceApi(commons.ApiRequester client) : | 3454 ProjectsServiceAccountResourceApi(commons.ApiRequester client) : |
3432 _requester = client; | 3455 _requester = client; |
3433 | 3456 |
3434 /** | 3457 /** |
3435 * Get the email address of this project's GCS service account. | 3458 * Get the email address of this project's Google Cloud Storage service |
| 3459 * account. |
3436 * | 3460 * |
3437 * Request parameters: | 3461 * Request parameters: |
3438 * | 3462 * |
3439 * [projectId] - Project ID | 3463 * [projectId] - Project ID |
3440 * | 3464 * |
3441 * Completes with a [ServiceAccount]. | 3465 * Completes with a [ServiceAccount]. |
3442 * | 3466 * |
3443 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3467 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3444 * error. | 3468 * error. |
3445 * | 3469 * |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4748 * accumulated by compose operations. | 4772 * accumulated by compose operations. |
4749 */ | 4773 */ |
4750 core.int componentCount; | 4774 core.int componentCount; |
4751 /** Content-Disposition of the object data. */ | 4775 /** Content-Disposition of the object data. */ |
4752 core.String contentDisposition; | 4776 core.String contentDisposition; |
4753 /** Content-Encoding of the object data. */ | 4777 /** Content-Encoding of the object data. */ |
4754 core.String contentEncoding; | 4778 core.String contentEncoding; |
4755 /** Content-Language of the object data. */ | 4779 /** Content-Language of the object data. */ |
4756 core.String contentLanguage; | 4780 core.String contentLanguage; |
4757 /** | 4781 /** |
4758 * Content-Type of the object data. If contentType is not specified, object | 4782 * Content-Type of the object data. If an object is stored without a |
4759 * downloads will be served as application/octet-stream. | 4783 * Content-Type, it is served as application/octet-stream. |
4760 */ | 4784 */ |
4761 core.String contentType; | 4785 core.String contentType; |
4762 /** | 4786 /** |
4763 * CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 | 4787 * CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 |
4764 * in big-endian byte order. For more information about using the CRC32c | 4788 * in big-endian byte order. For more information about using the CRC32c |
4765 * checksum, see Hashes and ETags: Best Practices. | 4789 * checksum, see Hashes and ETags: Best Practices. |
4766 */ | 4790 */ |
4767 core.String crc32c; | 4791 core.String crc32c; |
4768 /** | 4792 /** |
4769 * Metadata of customer-supplied encryption key, if the object is encrypted by | 4793 * Metadata of customer-supplied encryption key, if the object is encrypted by |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5355 void set etagAsBytes(core.List<core.int> _bytes) { | 5379 void set etagAsBytes(core.List<core.int> _bytes) { |
5356 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 5380 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
5357 } | 5381 } |
5358 /** | 5382 /** |
5359 * The kind of item this is. For policies, this is always storage#policy. This | 5383 * The kind of item this is. For policies, this is always storage#policy. This |
5360 * field is ignored on input. | 5384 * field is ignored on input. |
5361 */ | 5385 */ |
5362 core.String kind; | 5386 core.String kind; |
5363 /** | 5387 /** |
5364 * The ID of the resource to which this policy belongs. Will be of the form | 5388 * The ID of the resource to which this policy belongs. Will be of the form |
5365 * buckets/bucket for buckets, and buckets/bucket/objects/object for objects. | 5389 * projects/_/buckets/bucket for buckets, and |
5366 * A specific generation may be specified by appending #generationNumber to | 5390 * projects/_/buckets/bucket/objects/object for objects. A specific generation |
5367 * the end of the object name, e.g. buckets/my-bucket/objects/data.txt#17. The | 5391 * may be specified by appending #generationNumber to the end of the object |
5368 * current generation can be denoted with #0. This field is ignored on input. | 5392 * name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current |
| 5393 * generation can be denoted with #0. This field is ignored on input. |
5369 */ | 5394 */ |
5370 core.String resourceId; | 5395 core.String resourceId; |
5371 | 5396 |
5372 Policy(); | 5397 Policy(); |
5373 | 5398 |
5374 Policy.fromJson(core.Map _json) { | 5399 Policy.fromJson(core.Map _json) { |
5375 if (_json.containsKey("bindings")) { | 5400 if (_json.containsKey("bindings")) { |
5376 bindings = _json["bindings"].map((value) => new PolicyBindings.fromJson(va
lue)).toList(); | 5401 bindings = _json["bindings"].map((value) => new PolicyBindings.fromJson(va
lue)).toList(); |
5377 } | 5402 } |
5378 if (_json.containsKey("etag")) { | 5403 if (_json.containsKey("etag")) { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5555 if (kind != null) { | 5580 if (kind != null) { |
5556 _json["kind"] = kind; | 5581 _json["kind"] = kind; |
5557 } | 5582 } |
5558 if (permissions != null) { | 5583 if (permissions != null) { |
5559 _json["permissions"] = permissions; | 5584 _json["permissions"] = permissions; |
5560 } | 5585 } |
5561 return _json; | 5586 return _json; |
5562 } | 5587 } |
5563 } | 5588 } |
OLD | NEW |