Packages
google_api_storage
0.37.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
+87
additions
-71
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.36"}] |
| 14 | + [{:google_api_storage, "~> 0.37"}] |
| 15 15 | end |
| 16 16 | ``` |
| @@ -4,88 +4,88 @@ | |
| 4 4 | {<<"Homepage">>, |
| 5 5 | <<"https://developers.google.com/storage/docs/json_api/">>}]}. |
| 6 6 | {<<"name">>,<<"google_api_storage">>}. |
| 7 | - {<<"version">>,<<"0.36.0">>}. |
| 7 | + {<<"version">>,<<"0.37.0">>}. |
| 8 8 | {<<"description">>, |
| 9 9 | <<"Cloud Storage JSON API client library. Stores and retrieves potentially large, immutable data objects.">>}. |
| 10 10 | {<<"elixir">>,<<"~> 1.6">>}. |
| 11 11 | {<<"app">>,<<"google_api_storage">>}. |
| 12 12 | {<<"files">>, |
| 13 13 | [<<"lib">>,<<"lib/google_api">>,<<"lib/google_api/storage">>, |
| 14 | - <<"lib/google_api/storage/v1">>,<<"lib/google_api/storage/v1/metadata.ex">>, |
| 15 | - <<"lib/google_api/storage/v1/api">>, |
| 16 | - <<"lib/google_api/storage/v1/api/channels.ex">>, |
| 17 | - <<"lib/google_api/storage/v1/api/default_object_access_controls.ex">>, |
| 18 | - <<"lib/google_api/storage/v1/api/managed_folders.ex">>, |
| 19 | - <<"lib/google_api/storage/v1/api/buckets.ex">>, |
| 20 | - <<"lib/google_api/storage/v1/api/object_access_controls.ex">>, |
| 14 | + <<"lib/google_api/storage/v1">>,<<"lib/google_api/storage/v1/api">>, |
| 21 15 | <<"lib/google_api/storage/v1/api/objects.ex">>, |
| 22 | - <<"lib/google_api/storage/v1/api/anywhere_caches.ex">>, |
| 23 | - <<"lib/google_api/storage/v1/api/notifications.ex">>, |
| 24 | - <<"lib/google_api/storage/v1/api/folders.ex">>, |
| 25 | - <<"lib/google_api/storage/v1/api/operations.ex">>, |
| 26 16 | <<"lib/google_api/storage/v1/api/bucket_access_controls.ex">>, |
| 27 17 | <<"lib/google_api/storage/v1/api/projects.ex">>, |
| 28 | - <<"lib/google_api/storage/v1/connection.ex">>, |
| 18 | + <<"lib/google_api/storage/v1/api/anywhere_caches.ex">>, |
| 19 | + <<"lib/google_api/storage/v1/api/channels.ex">>, |
| 20 | + <<"lib/google_api/storage/v1/api/notifications.ex">>, |
| 21 | + <<"lib/google_api/storage/v1/api/operations.ex">>, |
| 22 | + <<"lib/google_api/storage/v1/api/buckets.ex">>, |
| 23 | + <<"lib/google_api/storage/v1/api/folders.ex">>, |
| 24 | + <<"lib/google_api/storage/v1/api/managed_folders.ex">>, |
| 25 | + <<"lib/google_api/storage/v1/api/default_object_access_controls.ex">>, |
| 26 | + <<"lib/google_api/storage/v1/api/object_access_controls.ex">>, |
| 29 27 | <<"lib/google_api/storage/v1/model">>, |
| 28 | + <<"lib/google_api/storage/v1/model/objects.ex">>, |
| 29 | + <<"lib/google_api/storage/v1/model/bucket_access_controls.ex">>, |
| 30 | + <<"lib/google_api/storage/v1/model/test_iam_permissions_response.ex">>, |
| 31 | + <<"lib/google_api/storage/v1/model/bucket_retention_policy.ex">>, |
| 32 | + <<"lib/google_api/storage/v1/model/google_rpc_status.ex">>, |
| 33 | + <<"lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex">>, |
| 34 | + <<"lib/google_api/storage/v1/model/anywhere_caches.ex">>, |
| 35 | + <<"lib/google_api/storage/v1/model/bucket_versioning.ex">>, |
| 36 | + <<"lib/google_api/storage/v1/model/bucket_soft_delete_policy.ex">>, |
| 37 | + <<"lib/google_api/storage/v1/model/hmac_keys_metadata.ex">>, |
| 38 | + <<"lib/google_api/storage/v1/model/bucket_object_retention.ex">>, |
| 39 | + <<"lib/google_api/storage/v1/model/bulk_restore_objects_request.ex">>, |
| 40 | + <<"lib/google_api/storage/v1/model/bucket.ex">>, |
| 41 | + <<"lib/google_api/storage/v1/model/bucket_custom_placement_config.ex">>, |
| 42 | + <<"lib/google_api/storage/v1/model/bucket_hierarchical_namespace.ex">>, |
| 43 | + <<"lib/google_api/storage/v1/model/object.ex">>, |
| 44 | + <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>, |
| 45 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>, |
| 46 | + <<"lib/google_api/storage/v1/model/compose_request.ex">>, |
| 47 | + <<"lib/google_api/storage/v1/model/google_longrunning_list_operations_response.ex">>, |
| 48 | + <<"lib/google_api/storage/v1/model/bucket_logging.ex">>, |
| 49 | + <<"lib/google_api/storage/v1/model/policy_bindings.ex">>, |
| 50 | + <<"lib/google_api/storage/v1/model/expr.ex">>, |
| 51 | + <<"lib/google_api/storage/v1/model/object_customer_encryption.ex">>, |
| 52 | + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>, |
| 53 | + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>, |
| 54 | + <<"lib/google_api/storage/v1/model/object_access_control.ex">>, |
| 55 | + <<"lib/google_api/storage/v1/model/bucket_access_control.ex">>, |
| 30 56 | <<"lib/google_api/storage/v1/model/folder.ex">>, |
| 31 57 | <<"lib/google_api/storage/v1/model/bucket_access_control_project_team.ex">>, |
| 32 | - <<"lib/google_api/storage/v1/model/channel.ex">>, |
| 33 | - <<"lib/google_api/storage/v1/model/google_longrunning_list_operations_response.ex">>, |
| 34 | - <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>, |
| 35 | - <<"lib/google_api/storage/v1/model/rewrite_response.ex">>, |
| 36 | - <<"lib/google_api/storage/v1/model/bulk_restore_objects_request.ex">>, |
| 37 | - <<"lib/google_api/storage/v1/model/managed_folders.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/hmac_keys_metadata.ex">>, |
| 41 | - <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>, |
| 42 | - <<"lib/google_api/storage/v1/model/bucket_cors.ex">>, |
| 43 | - <<"lib/google_api/storage/v1/model/object_access_controls.ex">>, |
| 44 | - <<"lib/google_api/storage/v1/model/hmac_key.ex">>, |
| 45 | - <<"lib/google_api/storage/v1/model/objects.ex">>, |
| 46 | - <<"lib/google_api/storage/v1/model/policy.ex">>, |
| 47 | - <<"lib/google_api/storage/v1/model/notification.ex">>, |
| 48 | - <<"lib/google_api/storage/v1/model/object_customer_encryption.ex">>, |
| 49 | - <<"lib/google_api/storage/v1/model/object_access_control_project_team.ex">>, |
| 50 | - <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>, |
| 51 | - <<"lib/google_api/storage/v1/model/object_owner.ex">>, |
| 52 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>, |
| 53 | - <<"lib/google_api/storage/v1/model/folder_pending_rename_info.ex">>, |
| 54 | - <<"lib/google_api/storage/v1/model/bucket_website.ex">>, |
| 55 | - <<"lib/google_api/storage/v1/model/bucket_soft_delete_policy.ex">>, |
| 56 | - <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>, |
| 57 | - <<"lib/google_api/storage/v1/model/bucket_logging.ex">>, |
| 58 | - <<"lib/google_api/storage/v1/model/google_longrunning_operation.ex">>, |
| 59 | - <<"lib/google_api/storage/v1/model/compose_request.ex">>, |
| 60 | - <<"lib/google_api/storage/v1/model/bucket_versioning.ex">>, |
| 61 | - <<"lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex">>, |
| 62 | - <<"lib/google_api/storage/v1/model/bucket_retention_policy.ex">>, |
| 63 | - <<"lib/google_api/storage/v1/model/anywhere_caches.ex">>, |
| 64 | - <<"lib/google_api/storage/v1/model/test_iam_permissions_response.ex">>, |
| 65 | - <<"lib/google_api/storage/v1/model/notifications.ex">>, |
| 66 | - <<"lib/google_api/storage/v1/model/bucket_hierarchical_namespace.ex">>, |
| 67 | - <<"lib/google_api/storage/v1/model/folders.ex">>, |
| 68 | - <<"lib/google_api/storage/v1/model/object.ex">>, |
| 69 | - <<"lib/google_api/storage/v1/model/anywhere_cache.ex">>, |
| 70 | - <<"lib/google_api/storage/v1/model/policy_bindings.ex">>, |
| 71 | - <<"lib/google_api/storage/v1/model/bucket_billing.ex">>, |
| 72 | - <<"lib/google_api/storage/v1/model/google_rpc_status.ex">>, |
| 73 | - <<"lib/google_api/storage/v1/model/object_access_control.ex">>, |
| 74 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>, |
| 75 | - <<"lib/google_api/storage/v1/model/bucket_access_controls.ex">>, |
| 76 58 | <<"lib/google_api/storage/v1/model/bucket_owner.ex">>, |
| 59 | + <<"lib/google_api/storage/v1/model/anywhere_cache.ex">>, |
| 60 | + <<"lib/google_api/storage/v1/model/folder_pending_rename_info.ex">>, |
| 61 | + <<"lib/google_api/storage/v1/model/notifications.ex">>, |
| 62 | + <<"lib/google_api/storage/v1/model/bucket_billing.ex">>, |
| 63 | + <<"lib/google_api/storage/v1/model/object_owner.ex">>, |
| 64 | + <<"lib/google_api/storage/v1/model/notification.ex">>, |
| 77 65 | <<"lib/google_api/storage/v1/model/bucket_autoclass.ex">>, |
| 78 | - <<"lib/google_api/storage/v1/model/service_account.ex">>, |
| 79 | - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>, |
| 80 | - <<"lib/google_api/storage/v1/model/object_retention.ex">>, |
| 81 | - <<"lib/google_api/storage/v1/model/bucket_access_control.ex">>, |
| 82 | - <<"lib/google_api/storage/v1/model/hmac_key_metadata.ex">>, |
| 83 | - <<"lib/google_api/storage/v1/model/compose_request_source_objects.ex">>, |
| 84 | - <<"lib/google_api/storage/v1/model/bucket_custom_placement_config.ex">>, |
| 85 | - <<"lib/google_api/storage/v1/model/bucket_object_retention.ex">>, |
| 86 66 | <<"lib/google_api/storage/v1/model/managed_folder.ex">>, |
| 67 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>, |
| 68 | + <<"lib/google_api/storage/v1/model/buckets.ex">>, |
| 69 | + <<"lib/google_api/storage/v1/model/folders.ex">>, |
| 70 | + <<"lib/google_api/storage/v1/model/hmac_key_metadata.ex">>, |
| 71 | + <<"lib/google_api/storage/v1/model/hmac_key.ex">>, |
| 72 | + <<"lib/google_api/storage/v1/model/object_access_control_project_team.ex">>, |
| 73 | + <<"lib/google_api/storage/v1/model/policy.ex">>, |
| 74 | + <<"lib/google_api/storage/v1/model/object_retention.ex">>, |
| 75 | + <<"lib/google_api/storage/v1/model/managed_folders.ex">>, |
| 76 | + <<"lib/google_api/storage/v1/model/bucket_cors.ex">>, |
| 77 | + <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>, |
| 78 | + <<"lib/google_api/storage/v1/model/compose_request_source_objects.ex">>, |
| 79 | + <<"lib/google_api/storage/v1/model/object_access_controls.ex">>, |
| 80 | + <<"lib/google_api/storage/v1/model/google_longrunning_operation.ex">>, |
| 81 | + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>, |
| 82 | + <<"lib/google_api/storage/v1/model/channel.ex">>, |
| 83 | + <<"lib/google_api/storage/v1/model/service_account.ex">>, |
| 84 | + <<"lib/google_api/storage/v1/model/rewrite_response.ex">>, |
| 85 | + <<"lib/google_api/storage/v1/model/bucket_website.ex">>, |
| 87 86 | <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_condition.ex">>, |
| 88 | - <<"lib/google_api/storage/v1/model/expr.ex">>,<<"mix.exs">>,<<"README.md">>, |
| 87 | + <<"lib/google_api/storage/v1/connection.ex">>, |
| 88 | + <<"lib/google_api/storage/v1/metadata.ex">>,<<"mix.exs">>,<<"README.md">>, |
| 89 89 | <<"LICENSE">>]}. |
| 90 90 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| 91 91 | {<<"requirements">>, |
| @@ -994,6 +994,7 @@ defmodule GoogleApi.Storage.V1.Api.Objects do | |
| 994 994 | * `connection` (*type:* `GoogleApi.Storage.V1.Connection.t`) - Connection to server |
| 995 995 | * `bucket` (*type:* `String.t`) - Name of the bucket in which the object resides. |
| 996 996 | * `object` (*type:* `String.t`) - Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. |
| 997 | + * `generation` (*type:* `String.t`) - Selects a specific revision of this object. |
| 997 998 | * `optional_params` (*type:* `keyword()`) - Optional parameters |
| 998 999 | * `:alt` (*type:* `String.t`) - Data format for the response. |
| 999 1000 | * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. |
| @@ -1017,12 +1018,26 @@ defmodule GoogleApi.Storage.V1.Api.Objects do | |
| 1017 1018 | * `{:ok, %GoogleApi.Storage.V1.Model.Object{}}` on success |
| 1018 1019 | * `{:error, info}` on failure |
| 1019 1020 | """ |
| 1020 | - @spec storage_objects_restore(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: |
| 1021 | + @spec storage_objects_restore( |
| 1022 | + Tesla.Env.client(), |
| 1023 | + String.t(), |
| 1024 | + String.t(), |
| 1025 | + String.t(), |
| 1026 | + keyword(), |
| 1027 | + keyword() |
| 1028 | + ) :: |
| 1021 1029 | {:ok, GoogleApi.Storage.V1.Model.Object.t()} |
| 1022 1030 | | {:ok, Tesla.Env.t()} |
| 1023 1031 | | {:ok, list()} |
| 1024 1032 | | {:error, any()} |
| 1025 | - def storage_objects_restore(connection, bucket, object, optional_params \\ [], opts \\ []) do |
| 1033 | + def storage_objects_restore( |
| 1034 | + connection, |
| 1035 | + bucket, |
| 1036 | + object, |
| 1037 | + generation, |
| 1038 | + optional_params \\ [], |
| 1039 | + opts \\ [] |
| 1040 | + ) do |
| 1026 1041 | optional_params_config = %{ |
| 1027 1042 | :alt => :query, |
| 1028 1043 | :fields => :query, |
| @@ -1048,6 +1063,7 @@ defmodule GoogleApi.Storage.V1.Api.Objects do | |
| 1048 1063 | "bucket" => URI.encode(bucket, &URI.char_unreserved?/1), |
| 1049 1064 | "object" => URI.encode(object, &URI.char_unreserved?/1) |
| 1050 1065 | }) |
| 1066 | + |> Request.add_param(:query, :generation, generation) |
| 1051 1067 | |> Request.add_optional_params(optional_params_config, optional_params) |
| 1052 1068 | |> Request.library_version(@library_version) |
| @@ -20,7 +20,7 @@ defmodule GoogleApi.Storage.V1 do | |
| 20 20 | API client metadata for GoogleApi.Storage.V1. |
| 21 21 | """ |
| 22 22 | |
| 23 | - @discovery_revision "20240311" |
| 23 | + @discovery_revision "20240319" |
| 24 24 | |
| 25 25 | def discovery_revision(), do: @discovery_revision |
| 26 26 | end |
| @@ -18,7 +18,7 @@ | |
| 18 18 | defmodule GoogleApi.Storage.Mixfile do |
| 19 19 | use Mix.Project |
| 20 20 | |
| 21 | - @version "0.36.0" |
| 21 | + @version "0.37.0" |
| 22 22 | |
| 23 23 | def project() do |
| 24 24 | [ |