| Index: tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/storage/storage_v1_messages.py
|
| diff --git a/tools/telemetry/third_party/gsutilz/gslib/third_party/storage_apitools/storage_v1_messages.py b/tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/storage/storage_v1_messages.py
|
| similarity index 90%
|
| copy from tools/telemetry/third_party/gsutilz/gslib/third_party/storage_apitools/storage_v1_messages.py
|
| copy to tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/storage/storage_v1_messages.py
|
| index 3c7261050bab266d56a5112570c1f4c1e7208c3e..0e7b585a7289b83f20015638dcb2a7ba9afb5344 100644
|
| --- a/tools/telemetry/third_party/gsutilz/gslib/third_party/storage_apitools/storage_v1_messages.py
|
| +++ b/tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/storage/storage_v1_messages.py
|
| @@ -1,26 +1,13 @@
|
| -# Copyright 2014 Google Inc. All Rights Reserved.
|
| -#
|
| -# Licensed under the Apache License, Version 2.0 (the "License");
|
| -# you may not use this file except in compliance with the License.
|
| -# You may obtain a copy of the License at
|
| -#
|
| -# http://www.apache.org/licenses/LICENSE-2.0
|
| -#
|
| -# Unless required by applicable law or agreed to in writing, software
|
| -# distributed under the License is distributed on an "AS IS" BASIS,
|
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| -# See the License for the specific language governing permissions and
|
| -# limitations under the License.
|
| """Generated message classes for storage version v1.
|
|
|
| Lets you store and retrieve potentially-large, immutable data objects.
|
| """
|
|
|
| +from apitools.base.py import encoding
|
| +from apitools.base.py import extra_types
|
| from protorpc import message_types
|
| from protorpc import messages
|
|
|
| -from apitools.base.py import encoding
|
| -from apitools.base.py import extra_types
|
|
|
| package = 'storage'
|
|
|
| @@ -63,9 +50,9 @@ class Bucket(messages.Message):
|
| projectNumber: The project number of the project the bucket belongs to.
|
| selfLink: The URI of this bucket.
|
| storageClass: The bucket's storage class. This defines how objects in the
|
| - bucket are stored and determines the SLA and the cost of storage. Values
|
| - include STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to
|
| - STANDARD. For more information, see storage classes.
|
| + bucket are stored and determines the SLA and the cost of storage.
|
| + Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults
|
| + to STANDARD. See the developer's guide for the authoritative list.
|
| timeCreated: Creation time of the bucket in RFC 3339 format.
|
| versioning: The bucket's versioning configuration.
|
| website: The bucket's website configuration.
|
| @@ -606,29 +593,6 @@ class Objects(messages.Message):
|
| prefixes = messages.StringField(4, repeated=True)
|
|
|
|
|
| -class RewriteResponse(messages.Message):
|
| - """A Rewrite response.
|
| -
|
| - Messages:
|
| - ResourceValue: A ResourceValue object.
|
| -
|
| - Fields:
|
| - done: A boolean attribute.
|
| - kind: The kind of item this is.
|
| - objectSize: A string attribute.
|
| - resource: A Object attribute.
|
| - rewriteToken: A string attribute.
|
| - totalBytesRewritten: A string attribute.
|
| - """
|
| -
|
| - done = messages.BooleanField(1)
|
| - kind = messages.StringField(2, default=u'storage#rewriteResponse')
|
| - objectSize = messages.IntegerField(3, variant=messages.Variant.UINT64)
|
| - resource = messages.MessageField('Object', 4)
|
| - rewriteToken = messages.StringField(5)
|
| - totalBytesRewritten = messages.IntegerField(6, variant=messages.Variant.UINT64)
|
| -
|
| -
|
| class StandardQueryParameters(messages.Message):
|
| """Query parameters accepted by all methods.
|
|
|
| @@ -646,8 +610,8 @@ class StandardQueryParameters(messages.Message):
|
| quotaUser: Available to use for quota purposes for server-side
|
| applications. Can be any arbitrary string assigned to a user, but should
|
| not exceed 40 characters. Overrides userIp if both are provided.
|
| - trace: A tracing token of the form "token:<tokenid>" or "email:<ldap>" to
|
| - include in api requests.
|
| + trace: A tracing token of the form "token:<tokenid>" to include in api
|
| + requests.
|
| userIp: IP address of the site where the request originates. Use this if
|
| you want to enforce per-user limits.
|
| """
|
| @@ -1641,118 +1605,6 @@ class StorageObjectsPatchRequest(messages.Message):
|
| projection = messages.EnumField('ProjectionValueValuesEnum', 10)
|
|
|
|
|
| -class StorageObjectsRewriteRequest(messages.Message):
|
| - """A StorageObjectsRewriteRequest object.
|
| -
|
| - Enums:
|
| - DestinationPredefinedAclValueValuesEnum: Apply a predefined set of access
|
| - controls to the destination object.
|
| - ProjectionValueValuesEnum: Set of properties to return. Defaults to noAcl,
|
| - unless the object resource specifies the acl property, when it defaults
|
| - to full.
|
| -
|
| - Fields:
|
| - destinationBucket: Name of the bucket in which to store the new object.
|
| - Overrides the provided object metadata's bucket value, if any.
|
| - destinationObject: Name of the new object. Required when the object
|
| - metadata is not otherwise provided. Overrides the object metadata's name
|
| - value, if any.
|
| - destinationPredefinedAcl: Apply a predefined set of access controls to the
|
| - destination object.
|
| - ifGenerationMatch: Makes the operation conditional on whether the
|
| - destination object's current generation matches the given value.
|
| - ifGenerationNotMatch: Makes the operation conditional on whether the
|
| - destination object's current generation does not match the given value.
|
| - ifMetagenerationMatch: Makes the operation conditional on whether the
|
| - destination object's current metageneration matches the given value.
|
| - ifMetagenerationNotMatch: Makes the operation conditional on whether the
|
| - destination object's current metageneration does not match the given
|
| - value.
|
| - ifSourceGenerationMatch: Makes the operation conditional on whether the
|
| - source object's generation matches the given value.
|
| - ifSourceGenerationNotMatch: Makes the operation conditional on whether the
|
| - source object's generation does not match the given value.
|
| - ifSourceMetagenerationMatch: Makes the operation conditional on whether
|
| - the source object's current metageneration matches the given value.
|
| - ifSourceMetagenerationNotMatch: Makes the operation conditional on whether
|
| - the source object's current metageneration does not match the given
|
| - value.
|
| - maxBytesRewrittenPerCall: The maximum number of bytes that will be
|
| - rewritten per Rewrite request. Most callers shouldn't need to specify
|
| - this parameter - it is primarily in place to support testing. If
|
| - specified the value must be an integral multiple of 1 MiB (1048576).
|
| - Also, this only applies to requests where the source and destination
|
| - span locations and/or storage classes. Finally, this value must not
|
| - change across Rewrite calls else you'll get an error that the rewrite
|
| - token is invalid.
|
| - object: A Object resource to be passed as the request body.
|
| - projection: Set of properties to return. Defaults to noAcl, unless the
|
| - object resource specifies the acl property, when it defaults to full.
|
| - rewriteToken: Include this field (from the previous Rewrite response) on
|
| - each Rewrite request after the first one, until the Rewrite response
|
| - 'done' flag is true. Calls that provide a rewriteToken can omit all
|
| - other request fields, but if included those fields must match the values
|
| - provided in the first rewrite request.
|
| - sourceBucket: Name of the bucket in which to find the source object.
|
| - sourceGeneration: If present, selects a specific revision of the source
|
| - object (as opposed to the latest version, the default).
|
| - sourceObject: Name of the source object.
|
| - """
|
| -
|
| - class DestinationPredefinedAclValueValuesEnum(messages.Enum):
|
| - """Apply a predefined set of access controls to the destination object.
|
| -
|
| - Values:
|
| - authenticatedRead: Object owner gets OWNER access, and
|
| - allAuthenticatedUsers get READER access.
|
| - bucketOwnerFullControl: Object owner gets OWNER access, and project team
|
| - owners get OWNER access.
|
| - bucketOwnerRead: Object owner gets OWNER access, and project team owners
|
| - get READER access.
|
| - private: Object owner gets OWNER access.
|
| - projectPrivate: Object owner gets OWNER access, and project team members
|
| - get access according to their roles.
|
| - publicRead: Object owner gets OWNER access, and allUsers get READER
|
| - access.
|
| - """
|
| - authenticatedRead = 0
|
| - bucketOwnerFullControl = 1
|
| - bucketOwnerRead = 2
|
| - private = 3
|
| - projectPrivate = 4
|
| - publicRead = 5
|
| -
|
| - class ProjectionValueValuesEnum(messages.Enum):
|
| - """Set of properties to return. Defaults to noAcl, unless the object
|
| - resource specifies the acl property, when it defaults to full.
|
| -
|
| - Values:
|
| - full: Include all properties.
|
| - noAcl: Omit the acl property.
|
| - """
|
| - full = 0
|
| - noAcl = 1
|
| -
|
| - destinationBucket = messages.StringField(1, required=True)
|
| - destinationObject = messages.StringField(2, required=True)
|
| - destinationPredefinedAcl = messages.EnumField('DestinationPredefinedAclValueValuesEnum', 3)
|
| - ifGenerationMatch = messages.IntegerField(4)
|
| - ifGenerationNotMatch = messages.IntegerField(5)
|
| - ifMetagenerationMatch = messages.IntegerField(6)
|
| - ifMetagenerationNotMatch = messages.IntegerField(7)
|
| - ifSourceGenerationMatch = messages.IntegerField(8)
|
| - ifSourceGenerationNotMatch = messages.IntegerField(9)
|
| - ifSourceMetagenerationMatch = messages.IntegerField(10)
|
| - ifSourceMetagenerationNotMatch = messages.IntegerField(11)
|
| - maxBytesRewrittenPerCall = messages.IntegerField(12)
|
| - object = messages.MessageField('Object', 13)
|
| - projection = messages.EnumField('ProjectionValueValuesEnum', 14)
|
| - rewriteToken = messages.StringField(15)
|
| - sourceBucket = messages.StringField(16, required=True)
|
| - sourceGeneration = messages.IntegerField(17)
|
| - sourceObject = messages.StringField(18, required=True)
|
| -
|
| -
|
| class StorageObjectsUpdateRequest(messages.Message):
|
| """A StorageObjectsUpdateRequest object.
|
|
|
|
|