Packages
google_api_storage
0.20.0
0.46.1
0.46.0
0.45.0
0.44.0
0.43.0
0.42.0
0.41.0
0.40.1
0.40.0
0.39.0
0.38.0
0.37.0
0.36.0
0.35.0
0.34.0
0.33.0
0.32.1
0.32.0
0.31.0
0.30.0
0.29.0
0.28.0
0.27.0
0.26.0
0.25.2
0.25.1
0.25.0
0.24.0
0.23.0
0.22.1
0.22.0
0.21.0
0.20.0
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
0.0.2
0.0.1
Cloud Storage JSON API client library. Stores and retrieves potentially large, immutable data objects.
Current section
54 Versions
Jump to
Current section
54 Versions
Compare versions
5
files changed
+60
additions
-51
deletions
| @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding | |
| 11 11 | |
| 12 12 | ```elixir |
| 13 13 | def deps do |
| 14 | - [{:google_api_storage, "~> 0.19"}] |
| 14 | + [{:google_api_storage, "~> 0.20"}] |
| 15 15 | end |
| 16 16 | ``` |
| @@ -5,58 +5,58 @@ | |
| 5 5 | {<<"elixir">>,<<"~> 1.6">>}. |
| 6 6 | {<<"files">>, |
| 7 7 | [<<"lib">>,<<"lib/google_api">>,<<"lib/google_api/storage">>, |
| 8 | - <<"lib/google_api/storage/v1">>,<<"lib/google_api/storage/v1/model">>, |
| 9 | - <<"lib/google_api/storage/v1/model/test_iam_permissions_response.ex">>, |
| 10 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>, |
| 11 | - <<"lib/google_api/storage/v1/model/hmac_key.ex">>, |
| 12 | - <<"lib/google_api/storage/v1/model/notification.ex">>, |
| 13 | - <<"lib/google_api/storage/v1/model/bucket_access_controls.ex">>, |
| 14 | - <<"lib/google_api/storage/v1/model/bucket_owner.ex">>, |
| 15 | - <<"lib/google_api/storage/v1/model/policy.ex">>, |
| 16 | - <<"lib/google_api/storage/v1/model/object_access_control.ex">>, |
| 17 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>, |
| 18 | - <<"lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex">>, |
| 19 | - <<"lib/google_api/storage/v1/model/bucket_website.ex">>, |
| 20 | - <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>, |
| 21 | - <<"lib/google_api/storage/v1/model/hmac_keys_metadata.ex">>, |
| 22 | - <<"lib/google_api/storage/v1/model/bucket_cors.ex">>, |
| 23 | - <<"lib/google_api/storage/v1/model/bucket_retention_policy.ex">>, |
| 24 | - <<"lib/google_api/storage/v1/model/notifications.ex">>, |
| 25 | - <<"lib/google_api/storage/v1/model/object_access_control_project_team.ex">>, |
| 26 | - <<"lib/google_api/storage/v1/model/object.ex">>, |
| 27 | - <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>, |
| 28 | - <<"lib/google_api/storage/v1/model/service_account.ex">>, |
| 29 | - <<"lib/google_api/storage/v1/model/compose_request_source_objects.ex">>, |
| 30 | - <<"lib/google_api/storage/v1/model/bucket_access_control.ex">>, |
| 31 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_condition.ex">>, |
| 32 | - <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>, |
| 33 | - <<"lib/google_api/storage/v1/model/bucket_billing.ex">>, |
| 34 | - <<"lib/google_api/storage/v1/model/object_owner.ex">>, |
| 35 | - <<"lib/google_api/storage/v1/model/bucket_logging.ex">>, |
| 36 | - <<"lib/google_api/storage/v1/model/compose_request.ex">>, |
| 37 | - <<"lib/google_api/storage/v1/model/policy_bindings.ex">>, |
| 38 | - <<"lib/google_api/storage/v1/model/bucket.ex">>, |
| 39 | - <<"lib/google_api/storage/v1/model/buckets.ex">>, |
| 40 | - <<"lib/google_api/storage/v1/model/bucket_access_control_project_team.ex">>, |
| 41 | - <<"lib/google_api/storage/v1/model/object_customer_encryption.ex">>, |
| 42 | - <<"lib/google_api/storage/v1/model/hmac_key_metadata.ex">>, |
| 43 | - <<"lib/google_api/storage/v1/model/rewrite_response.ex">>, |
| 44 | - <<"lib/google_api/storage/v1/model/expr.ex">>, |
| 45 | - <<"lib/google_api/storage/v1/model/objects.ex">>, |
| 46 | - <<"lib/google_api/storage/v1/model/channel.ex">>, |
| 47 | - <<"lib/google_api/storage/v1/model/bucket_versioning.ex">>, |
| 48 | - <<"lib/google_api/storage/v1/model/object_access_controls.ex">>, |
| 49 | - <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>, |
| 50 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>, |
| 51 | - <<"lib/google_api/storage/v1/api">>, |
| 8 | + <<"lib/google_api/storage/v1">>,<<"lib/google_api/storage/v1/api">>, |
| 52 9 | <<"lib/google_api/storage/v1/api/channels.ex">>, |
| 53 | - <<"lib/google_api/storage/v1/api/bucket_access_controls.ex">>, |
| 10 | + <<"lib/google_api/storage/v1/api/object_access_controls.ex">>, |
| 11 | + <<"lib/google_api/storage/v1/api/buckets.ex">>, |
| 54 12 | <<"lib/google_api/storage/v1/api/notifications.ex">>, |
| 55 13 | <<"lib/google_api/storage/v1/api/default_object_access_controls.ex">>, |
| 56 | - <<"lib/google_api/storage/v1/api/projects.ex">>, |
| 57 | - <<"lib/google_api/storage/v1/api/buckets.ex">>, |
| 14 | + <<"lib/google_api/storage/v1/api/bucket_access_controls.ex">>, |
| 58 15 | <<"lib/google_api/storage/v1/api/objects.ex">>, |
| 59 | - <<"lib/google_api/storage/v1/api/object_access_controls.ex">>, |
| 16 | + <<"lib/google_api/storage/v1/api/projects.ex">>, |
| 17 | + <<"lib/google_api/storage/v1/model">>, |
| 18 | + <<"lib/google_api/storage/v1/model/bucket_access_control_project_team.ex">>, |
| 19 | + <<"lib/google_api/storage/v1/model/bucket_retention_policy.ex">>, |
| 20 | + <<"lib/google_api/storage/v1/model/object_access_controls.ex">>, |
| 21 | + <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>, |
| 22 | + <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>, |
| 23 | + <<"lib/google_api/storage/v1/model/expr.ex">>, |
| 24 | + <<"lib/google_api/storage/v1/model/object_customer_encryption.ex">>, |
| 25 | + <<"lib/google_api/storage/v1/model/test_iam_permissions_response.ex">>, |
| 26 | + <<"lib/google_api/storage/v1/model/compose_request_source_objects.ex">>, |
| 27 | + <<"lib/google_api/storage/v1/model/object_access_control.ex">>, |
| 28 | + <<"lib/google_api/storage/v1/model/hmac_keys_metadata.ex">>, |
| 29 | + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>, |
| 30 | + <<"lib/google_api/storage/v1/model/bucket_cors.ex">>, |
| 31 | + <<"lib/google_api/storage/v1/model/channel.ex">>, |
| 32 | + <<"lib/google_api/storage/v1/model/hmac_key_metadata.ex">>, |
| 33 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>, |
| 34 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>, |
| 35 | + <<"lib/google_api/storage/v1/model/service_account.ex">>, |
| 36 | + <<"lib/google_api/storage/v1/model/policy.ex">>, |
| 37 | + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>, |
| 38 | + <<"lib/google_api/storage/v1/model/buckets.ex">>, |
| 39 | + <<"lib/google_api/storage/v1/model/notifications.ex">>, |
| 40 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_condition.ex">>, |
| 41 | + <<"lib/google_api/storage/v1/model/bucket_website.ex">>, |
| 42 | + <<"lib/google_api/storage/v1/model/object_access_control_project_team.ex">>, |
| 43 | + <<"lib/google_api/storage/v1/model/policy_bindings.ex">>, |
| 44 | + <<"lib/google_api/storage/v1/model/notification.ex">>, |
| 45 | + <<"lib/google_api/storage/v1/model/bucket.ex">>, |
| 46 | + <<"lib/google_api/storage/v1/model/bucket_logging.ex">>, |
| 47 | + <<"lib/google_api/storage/v1/model/compose_request.ex">>, |
| 48 | + <<"lib/google_api/storage/v1/model/hmac_key.ex">>, |
| 49 | + <<"lib/google_api/storage/v1/model/bucket_billing.ex">>, |
| 50 | + <<"lib/google_api/storage/v1/model/bucket_access_controls.ex">>, |
| 51 | + <<"lib/google_api/storage/v1/model/object_owner.ex">>, |
| 52 | + <<"lib/google_api/storage/v1/model/bucket_owner.ex">>, |
| 53 | + <<"lib/google_api/storage/v1/model/objects.ex">>, |
| 54 | + <<"lib/google_api/storage/v1/model/bucket_access_control.ex">>, |
| 55 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>, |
| 56 | + <<"lib/google_api/storage/v1/model/rewrite_response.ex">>, |
| 57 | + <<"lib/google_api/storage/v1/model/bucket_versioning.ex">>, |
| 58 | + <<"lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex">>, |
| 59 | + <<"lib/google_api/storage/v1/model/object.ex">>, |
| 60 60 | <<"lib/google_api/storage/v1/connection.ex">>,<<"mix.exs">>,<<"README.md">>, |
| 61 61 | <<"LICENSE">>]}. |
| 62 62 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| @@ -72,4 +72,4 @@ | |
| 72 72 | {<<"optional">>,false}, |
| 73 73 | {<<"repository">>,<<"hexpm">>}, |
| 74 74 | {<<"requirement">>,<<"~> 0.2">>}]]}. |
| 75 | - {<<"version">>,<<"0.19.0">>}. |
| 75 | + {<<"version">>,<<"0.20.0">>}. |
| @@ -23,6 +23,8 @@ defmodule GoogleApi.Storage.V1.Model.BucketLifecycleRuleCondition do | |
| 23 23 | |
| 24 24 | * `age` (*type:* `integer()`, *default:* `nil`) - Age of an object (in days). This condition is satisfied when an object reaches the specified age. |
| 25 25 | * `createdBefore` (*type:* `Date.t`, *default:* `nil`) - A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC. |
| 26 | + * `customTimeBefore` (*type:* `DateTime.t`, *default:* `nil`) - A timestamp in RFC 3339 format. This condition is satisfied when the custom time on an object is before this timestamp. |
| 27 | + * `daysSinceCustomTime` (*type:* `integer()`, *default:* `nil`) - Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply. |
| 26 28 | * `isLive` (*type:* `boolean()`, *default:* `nil`) - Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects. |
| 27 29 | * `matchesPattern` (*type:* `String.t`, *default:* `nil`) - A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released. |
| 28 30 | * `matchesStorageClass` (*type:* `list(String.t)`, *default:* `nil`) - Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY. |
| @@ -34,6 +36,8 @@ defmodule GoogleApi.Storage.V1.Model.BucketLifecycleRuleCondition do | |
| 34 36 | @type t :: %__MODULE__{ |
| 35 37 | :age => integer(), |
| 36 38 | :createdBefore => Date.t(), |
| 39 | + :customTimeBefore => DateTime.t(), |
| 40 | + :daysSinceCustomTime => integer(), |
| 37 41 | :isLive => boolean(), |
| 38 42 | :matchesPattern => String.t(), |
| 39 43 | :matchesStorageClass => list(String.t()), |
| @@ -42,6 +46,8 @@ defmodule GoogleApi.Storage.V1.Model.BucketLifecycleRuleCondition do | |
| 42 46 | |
| 43 47 | field(:age) |
| 44 48 | field(:createdBefore, as: Date) |
| 49 | + field(:customTimeBefore, as: DateTime) |
| 50 | + field(:daysSinceCustomTime) |
| 45 51 | field(:isLive) |
| 46 52 | field(:matchesPattern) |
| 47 53 | field(:matchesStorageClass, type: :list) |
| @@ -30,6 +30,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do | |
| 30 30 | * `contentLanguage` (*type:* `String.t`, *default:* `nil`) - Content-Language of the object data. |
| 31 31 | * `contentType` (*type:* `String.t`, *default:* `nil`) - Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream. |
| 32 32 | * `crc32c` (*type:* `String.t`, *default:* `nil`) - CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices. |
| 33 | + * `customTime` (*type:* `DateTime.t`, *default:* `nil`) - A timestamp in RFC 3339 format specified by the user for an object. |
| 33 34 | * `customerEncryption` (*type:* `GoogleApi.Storage.V1.Model.ObjectCustomerEncryption.t`, *default:* `nil`) - Metadata of customer-supplied encryption key, if the object is encrypted by such a key. |
| 34 35 | * `etag` (*type:* `String.t`, *default:* `nil`) - HTTP 1.1 Entity tag for the object. |
| 35 36 | * `eventBasedHold` (*type:* `boolean()`, *default:* `nil`) - Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. |
| @@ -66,6 +67,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do | |
| 66 67 | :contentLanguage => String.t(), |
| 67 68 | :contentType => String.t(), |
| 68 69 | :crc32c => String.t(), |
| 70 | + :customTime => DateTime.t(), |
| 69 71 | :customerEncryption => GoogleApi.Storage.V1.Model.ObjectCustomerEncryption.t(), |
| 70 72 | :etag => String.t(), |
| 71 73 | :eventBasedHold => boolean(), |
| @@ -99,6 +101,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do | |
| 99 101 | field(:contentLanguage) |
| 100 102 | field(:contentType) |
| 101 103 | field(:crc32c) |
| 104 | + field(:customTime, as: DateTime) |
| 102 105 | field(:customerEncryption, as: GoogleApi.Storage.V1.Model.ObjectCustomerEncryption) |
| 103 106 | field(:etag) |
| 104 107 | field(:eventBasedHold) |
| @@ -18,7 +18,7 @@ | |
| 18 18 | defmodule GoogleApi.Storage.Mixfile do |
| 19 19 | use Mix.Project |
| 20 20 | |
| 21 | - @version "0.19.0" |
| 21 | + @version "0.20.0" |
| 22 22 | |
| 23 23 | def project() do |
| 24 24 | [ |