Packages
Cloud Datastore API client library. Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
Current section
32 Versions
Jump to
Current section
32 Versions
Compare versions
67
files changed
+1114
additions
-826
deletions
| @@ -8,7 +8,6 @@ | |
| 8 8 | <<"lib/google_api/datastore/v1">>,<<"lib/google_api/datastore/v1/api">>, |
| 9 9 | <<"lib/google_api/datastore/v1/api/projects.ex">>, |
| 10 10 | <<"lib/google_api/datastore/v1/connection.ex">>, |
| 11 | - <<"lib/google_api/datastore/v1/deserializer.ex">>, |
| 12 11 | <<"lib/google_api/datastore/v1/model">>, |
| 13 12 | <<"lib/google_api/datastore/v1/model/allocate_ids_request.ex">>, |
| 14 13 | <<"lib/google_api/datastore/v1/model/allocate_ids_response.ex">>, |
| @@ -70,8 +69,7 @@ | |
| 70 69 | <<"lib/google_api/datastore/v1/model/run_query_response.ex">>, |
| 71 70 | <<"lib/google_api/datastore/v1/model/status.ex">>, |
| 72 71 | <<"lib/google_api/datastore/v1/model/transaction_options.ex">>, |
| 73 | - <<"lib/google_api/datastore/v1/model/value.ex">>, |
| 74 | - <<"lib/google_api/datastore/v1/request_builder.ex">>,<<"mix.exs">>, |
| 72 | + <<"lib/google_api/datastore/v1/model/value.ex">>,<<"mix.exs">>, |
| 75 73 | <<"README.md">>,<<"LICENSE">>]}. |
| 76 74 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| 77 75 | {<<"links">>, |
| @@ -85,4 +83,4 @@ | |
| 85 83 | {<<"optional">>,false}, |
| 86 84 | {<<"repository">>,<<"hexpm">>}, |
| 87 85 | {<<"requirement">>,<<"~> 0.1.0">>}]]}. |
| 88 | - {<<"version">>,<<"0.3.0">>}. |
| 86 | + {<<"version">>,<<"0.4.0">>}. |
| @@ -1,4 +1,4 @@ | |
| 1 | - # Copyright 2017 Google Inc. |
| 1 | + # Copyright 2019 Google LLC |
| 2 2 | # |
| 3 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 4 | # you may not use this file except in compliance with the License. |
| @@ -12,8 +12,7 @@ | |
| 12 12 | # See the License for the specific language governing permissions and |
| 13 13 | # limitations under the License. |
| 14 14 | |
| 15 | - # NOTE: This class is auto generated by the swagger code generator program. |
| 16 | - # https://github.com/swagger-api/swagger-codegen.git |
| 15 | + # NOTE: This class is auto generated by the elixir code generator program. |
| 17 16 | # Do not edit the class manually. |
| 18 17 | |
| 19 18 | defmodule GoogleApi.Datastore.V1.Api.Projects do |
| @@ -25,13 +24,14 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 25 24 | alias GoogleApi.Gax.{Request, Response} |
| 26 25 | |
| 27 26 | @doc """ |
| 28 | - Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. |
| 27 | + Allocates IDs for the given keys, which is useful for referencing an entity |
| 28 | + before it is inserted. |
| 29 29 | |
| 30 30 | ## Parameters |
| 31 31 | |
| 32 32 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 33 33 | - project_id (String.t): The ID of the project against which to make the request. |
| 34 | - - optional_params (KeywordList): [optional] Optional parameters |
| 34 | + - optional_params (keyword()): [optional] Optional parameters |
| 35 35 | - :$.xgafv (String.t): V1 error format. |
| 36 36 | - :access_token (String.t): OAuth access token. |
| 37 37 | - :alt (String.t): Data format for response. |
| @@ -41,9 +41,9 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 41 41 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 42 42 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 43 43 | - :quotaUser (String.t): 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. |
| 44 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 45 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 46 | - - :body (AllocateIdsRequest): |
| 44 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 45 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 46 | + - :body (GoogleApi.Datastore.V1.Model.AllocateIdsRequest.t): |
| 47 47 | |
| 48 48 | ## Returns |
| 49 49 | |
| @@ -63,8 +63,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 63 63 | :oauth_token => :query, |
| 64 64 | :prettyPrint => :query, |
| 65 65 | :quotaUser => :query, |
| 66 | - :upload_protocol => :query, |
| 67 66 | :uploadType => :query, |
| 67 | + :upload_protocol => :query, |
| 68 68 | :body => :body |
| 69 69 | } |
| 70 70 | |
| @@ -88,7 +88,7 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 88 88 | |
| 89 89 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 90 90 | - project_id (String.t): The ID of the project against which to make the request. |
| 91 | - - optional_params (KeywordList): [optional] Optional parameters |
| 91 | + - optional_params (keyword()): [optional] Optional parameters |
| 92 92 | - :$.xgafv (String.t): V1 error format. |
| 93 93 | - :access_token (String.t): OAuth access token. |
| 94 94 | - :alt (String.t): Data format for response. |
| @@ -98,9 +98,9 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 98 98 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 99 99 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 100 100 | - :quotaUser (String.t): 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. |
| 101 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 102 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 103 | - - :body (BeginTransactionRequest): |
| 101 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 102 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 103 | + - :body (GoogleApi.Datastore.V1.Model.BeginTransactionRequest.t): |
| 104 104 | |
| 105 105 | ## Returns |
| 106 106 | |
| @@ -126,8 +126,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 126 126 | :oauth_token => :query, |
| 127 127 | :prettyPrint => :query, |
| 128 128 | :quotaUser => :query, |
| 129 | - :upload_protocol => :query, |
| 130 129 | :uploadType => :query, |
| 130 | + :upload_protocol => :query, |
| 131 131 | :body => :body |
| 132 132 | } |
| 133 133 | |
| @@ -145,13 +145,14 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 145 145 | end |
| 146 146 | |
| 147 147 | @doc """ |
| 148 | - Commits a transaction, optionally creating, deleting or modifying some entities. |
| 148 | + Commits a transaction, optionally creating, deleting or modifying some |
| 149 | + entities. |
| 149 150 | |
| 150 151 | ## Parameters |
| 151 152 | |
| 152 153 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 153 154 | - project_id (String.t): The ID of the project against which to make the request. |
| 154 | - - optional_params (KeywordList): [optional] Optional parameters |
| 155 | + - optional_params (keyword()): [optional] Optional parameters |
| 155 156 | - :$.xgafv (String.t): V1 error format. |
| 156 157 | - :access_token (String.t): OAuth access token. |
| 157 158 | - :alt (String.t): Data format for response. |
| @@ -161,9 +162,9 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 161 162 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 162 163 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 163 164 | - :quotaUser (String.t): 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. |
| 164 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 165 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 166 | - - :body (CommitRequest): |
| 165 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 166 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 167 | + - :body (GoogleApi.Datastore.V1.Model.CommitRequest.t): |
| 167 168 | |
| 168 169 | ## Returns |
| 169 170 | |
| @@ -183,8 +184,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 183 184 | :oauth_token => :query, |
| 184 185 | :prettyPrint => :query, |
| 185 186 | :quotaUser => :query, |
| 186 | - :upload_protocol => :query, |
| 187 187 | :uploadType => :query, |
| 188 | + :upload_protocol => :query, |
| 188 189 | :body => :body |
| 189 190 | } |
| 190 191 | |
| @@ -202,13 +203,20 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 202 203 | end |
| 203 204 | |
| 204 205 | @doc """ |
| 205 | - Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage. |
| 206 | + Exports a copy of all or a subset of entities from Google Cloud Datastore |
| 207 | + to another storage system, such as Google Cloud Storage. Recent updates to |
| 208 | + entities may not be reflected in the export. The export occurs in the |
| 209 | + background and its progress can be monitored and managed via the |
| 210 | + Operation resource that is created. The output of an export may only be |
| 211 | + used once the associated operation is done. If an export operation is |
| 212 | + cancelled before completion it may leave partial data behind in Google |
| 213 | + Cloud Storage. |
| 206 214 | |
| 207 215 | ## Parameters |
| 208 216 | |
| 209 217 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 210 218 | - project_id (String.t): Project ID against which to make the request. |
| 211 | - - optional_params (KeywordList): [optional] Optional parameters |
| 219 | + - optional_params (keyword()): [optional] Optional parameters |
| 212 220 | - :$.xgafv (String.t): V1 error format. |
| 213 221 | - :access_token (String.t): OAuth access token. |
| 214 222 | - :alt (String.t): Data format for response. |
| @@ -218,9 +226,9 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 218 226 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 219 227 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 220 228 | - :quotaUser (String.t): 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. |
| 221 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 222 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 223 | - - :body (GoogleDatastoreAdminV1ExportEntitiesRequest): |
| 229 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 230 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 231 | + - :body (GoogleApi.Datastore.V1.Model.GoogleDatastoreAdminV1ExportEntitiesRequest.t): |
| 224 232 | |
| 225 233 | ## Returns |
| 226 234 | |
| @@ -241,8 +249,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 241 249 | :oauth_token => :query, |
| 242 250 | :prettyPrint => :query, |
| 243 251 | :quotaUser => :query, |
| 244 | - :upload_protocol => :query, |
| 245 252 | :uploadType => :query, |
| 253 | + :upload_protocol => :query, |
| 246 254 | :body => :body |
| 247 255 | } |
| 248 256 | |
| @@ -262,13 +270,17 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 262 270 | end |
| 263 271 | |
| 264 272 | @doc """ |
| 265 | - Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore. |
| 273 | + Imports entities into Google Cloud Datastore. Existing entities with the |
| 274 | + same key are overwritten. The import occurs in the background and its |
| 275 | + progress can be monitored and managed via the Operation resource that is |
| 276 | + created. If an ImportEntities operation is cancelled, it is possible |
| 277 | + that a subset of the data has already been imported to Cloud Datastore. |
| 266 278 | |
| 267 279 | ## Parameters |
| 268 280 | |
| 269 281 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 270 282 | - project_id (String.t): Project ID against which to make the request. |
| 271 | - - optional_params (KeywordList): [optional] Optional parameters |
| 283 | + - optional_params (keyword()): [optional] Optional parameters |
| 272 284 | - :$.xgafv (String.t): V1 error format. |
| 273 285 | - :access_token (String.t): OAuth access token. |
| 274 286 | - :alt (String.t): Data format for response. |
| @@ -278,9 +290,9 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 278 290 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 279 291 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 280 292 | - :quotaUser (String.t): 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. |
| 281 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 282 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 283 | - - :body (GoogleDatastoreAdminV1ImportEntitiesRequest): |
| 293 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 294 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 295 | + - :body (GoogleApi.Datastore.V1.Model.GoogleDatastoreAdminV1ImportEntitiesRequest.t): |
| 284 296 | |
| 285 297 | ## Returns |
| 286 298 | |
| @@ -301,8 +313,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 301 313 | :oauth_token => :query, |
| 302 314 | :prettyPrint => :query, |
| 303 315 | :quotaUser => :query, |
| 304 | - :upload_protocol => :query, |
| 305 316 | :uploadType => :query, |
| 317 | + :upload_protocol => :query, |
| 306 318 | :body => :body |
| 307 319 | } |
| 308 320 | |
| @@ -322,14 +334,13 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 322 334 | end |
| 323 335 | |
| 324 336 | @doc """ |
| 325 | - Gets an index. |
| 337 | + Looks up entities by key. |
| 326 338 | |
| 327 339 | ## Parameters |
| 328 340 | |
| 329 341 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 330 | - - project_id (String.t): Project ID against which to make the request. |
| 331 | - - index_id (String.t): The resource ID of the index to get. |
| 332 | - - optional_params (KeywordList): [optional] Optional parameters |
| 342 | + - project_id (String.t): The ID of the project against which to make the request. |
| 343 | + - optional_params (keyword()): [optional] Optional parameters |
| 333 344 | - :$.xgafv (String.t): V1 error format. |
| 334 345 | - :access_token (String.t): OAuth access token. |
| 335 346 | - :alt (String.t): Data format for response. |
| @@ -339,8 +350,238 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 339 350 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 340 351 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 341 352 | - :quotaUser (String.t): 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. |
| 342 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 343 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 353 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 354 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 355 | + - :body (GoogleApi.Datastore.V1.Model.LookupRequest.t): |
| 356 | + |
| 357 | + ## Returns |
| 358 | + |
| 359 | + {:ok, %GoogleApi.Datastore.V1.Model.LookupResponse{}} on success |
| 360 | + {:error, info} on failure |
| 361 | + """ |
| 362 | + @spec datastore_projects_lookup(Tesla.Env.client(), String.t(), keyword()) :: |
| 363 | + {:ok, GoogleApi.Datastore.V1.Model.LookupResponse.t()} | {:error, Tesla.Env.t()} |
| 364 | + def datastore_projects_lookup(connection, project_id, optional_params \\ [], opts \\ []) do |
| 365 | + optional_params_config = %{ |
| 366 | + :"$.xgafv" => :query, |
| 367 | + :access_token => :query, |
| 368 | + :alt => :query, |
| 369 | + :callback => :query, |
| 370 | + :fields => :query, |
| 371 | + :key => :query, |
| 372 | + :oauth_token => :query, |
| 373 | + :prettyPrint => :query, |
| 374 | + :quotaUser => :query, |
| 375 | + :uploadType => :query, |
| 376 | + :upload_protocol => :query, |
| 377 | + :body => :body |
| 378 | + } |
| 379 | + |
| 380 | + request = |
| 381 | + Request.new() |
| 382 | + |> Request.method(:post) |
| 383 | + |> Request.url("/v1/projects/{projectId}:lookup", %{ |
| 384 | + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 385 | + }) |
| 386 | + |> Request.add_optional_params(optional_params_config, optional_params) |
| 387 | + |
| 388 | + connection |
| 389 | + |> Connection.execute(request) |
| 390 | + |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.LookupResponse{}]) |
| 391 | + end |
| 392 | + |
| 393 | + @doc """ |
| 394 | + Prevents the supplied keys' IDs from being auto-allocated by Cloud |
| 395 | + Datastore. |
| 396 | + |
| 397 | + ## Parameters |
| 398 | + |
| 399 | + - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 400 | + - project_id (String.t): The ID of the project against which to make the request. |
| 401 | + - optional_params (keyword()): [optional] Optional parameters |
| 402 | + - :$.xgafv (String.t): V1 error format. |
| 403 | + - :access_token (String.t): OAuth access token. |
| 404 | + - :alt (String.t): Data format for response. |
| 405 | + - :callback (String.t): JSONP |
| 406 | + - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 407 | + - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 408 | + - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 409 | + - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 410 | + - :quotaUser (String.t): 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. |
| 411 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 412 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 413 | + - :body (GoogleApi.Datastore.V1.Model.ReserveIdsRequest.t): |
| 414 | + |
| 415 | + ## Returns |
| 416 | + |
| 417 | + {:ok, %GoogleApi.Datastore.V1.Model.ReserveIdsResponse{}} on success |
| 418 | + {:error, info} on failure |
| 419 | + """ |
| 420 | + @spec datastore_projects_reserve_ids(Tesla.Env.client(), String.t(), keyword()) :: |
| 421 | + {:ok, GoogleApi.Datastore.V1.Model.ReserveIdsResponse.t()} | {:error, Tesla.Env.t()} |
| 422 | + def datastore_projects_reserve_ids(connection, project_id, optional_params \\ [], opts \\ []) do |
| 423 | + optional_params_config = %{ |
| 424 | + :"$.xgafv" => :query, |
| 425 | + :access_token => :query, |
| 426 | + :alt => :query, |
| 427 | + :callback => :query, |
| 428 | + :fields => :query, |
| 429 | + :key => :query, |
| 430 | + :oauth_token => :query, |
| 431 | + :prettyPrint => :query, |
| 432 | + :quotaUser => :query, |
| 433 | + :uploadType => :query, |
| 434 | + :upload_protocol => :query, |
| 435 | + :body => :body |
| 436 | + } |
| 437 | + |
| 438 | + request = |
| 439 | + Request.new() |
| 440 | + |> Request.method(:post) |
| 441 | + |> Request.url("/v1/projects/{projectId}:reserveIds", %{ |
| 442 | + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 443 | + }) |
| 444 | + |> Request.add_optional_params(optional_params_config, optional_params) |
| 445 | + |
| 446 | + connection |
| 447 | + |> Connection.execute(request) |
| 448 | + |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.ReserveIdsResponse{}]) |
| 449 | + end |
| 450 | + |
| 451 | + @doc """ |
| 452 | + Rolls back a transaction. |
| 453 | + |
| 454 | + ## Parameters |
| 455 | + |
| 456 | + - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 457 | + - project_id (String.t): The ID of the project against which to make the request. |
| 458 | + - optional_params (keyword()): [optional] Optional parameters |
| 459 | + - :$.xgafv (String.t): V1 error format. |
| 460 | + - :access_token (String.t): OAuth access token. |
| 461 | + - :alt (String.t): Data format for response. |
| 462 | + - :callback (String.t): JSONP |
| 463 | + - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 464 | + - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 465 | + - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 466 | + - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 467 | + - :quotaUser (String.t): 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. |
| 468 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 469 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 470 | + - :body (GoogleApi.Datastore.V1.Model.RollbackRequest.t): |
| 471 | + |
| 472 | + ## Returns |
| 473 | + |
| 474 | + {:ok, %GoogleApi.Datastore.V1.Model.RollbackResponse{}} on success |
| 475 | + {:error, info} on failure |
| 476 | + """ |
| 477 | + @spec datastore_projects_rollback(Tesla.Env.client(), String.t(), keyword()) :: |
| 478 | + {:ok, GoogleApi.Datastore.V1.Model.RollbackResponse.t()} | {:error, Tesla.Env.t()} |
| 479 | + def datastore_projects_rollback(connection, project_id, optional_params \\ [], opts \\ []) do |
| 480 | + optional_params_config = %{ |
| 481 | + :"$.xgafv" => :query, |
| 482 | + :access_token => :query, |
| 483 | + :alt => :query, |
| 484 | + :callback => :query, |
| 485 | + :fields => :query, |
| 486 | + :key => :query, |
| 487 | + :oauth_token => :query, |
| 488 | + :prettyPrint => :query, |
| 489 | + :quotaUser => :query, |
| 490 | + :uploadType => :query, |
| 491 | + :upload_protocol => :query, |
| 492 | + :body => :body |
| 493 | + } |
| 494 | + |
| 495 | + request = |
| 496 | + Request.new() |
| 497 | + |> Request.method(:post) |
| 498 | + |> Request.url("/v1/projects/{projectId}:rollback", %{ |
| 499 | + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 500 | + }) |
| 501 | + |> Request.add_optional_params(optional_params_config, optional_params) |
| 502 | + |
| 503 | + connection |
| 504 | + |> Connection.execute(request) |
| 505 | + |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.RollbackResponse{}]) |
| 506 | + end |
| 507 | + |
| 508 | + @doc """ |
| 509 | + Queries for entities. |
| 510 | + |
| 511 | + ## Parameters |
| 512 | + |
| 513 | + - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 514 | + - project_id (String.t): The ID of the project against which to make the request. |
| 515 | + - optional_params (keyword()): [optional] Optional parameters |
| 516 | + - :$.xgafv (String.t): V1 error format. |
| 517 | + - :access_token (String.t): OAuth access token. |
| 518 | + - :alt (String.t): Data format for response. |
| 519 | + - :callback (String.t): JSONP |
| 520 | + - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 521 | + - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 522 | + - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 523 | + - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 524 | + - :quotaUser (String.t): 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. |
| 525 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 526 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 527 | + - :body (GoogleApi.Datastore.V1.Model.RunQueryRequest.t): |
| 528 | + |
| 529 | + ## Returns |
| 530 | + |
| 531 | + {:ok, %GoogleApi.Datastore.V1.Model.RunQueryResponse{}} on success |
| 532 | + {:error, info} on failure |
| 533 | + """ |
| 534 | + @spec datastore_projects_run_query(Tesla.Env.client(), String.t(), keyword()) :: |
| 535 | + {:ok, GoogleApi.Datastore.V1.Model.RunQueryResponse.t()} | {:error, Tesla.Env.t()} |
| 536 | + def datastore_projects_run_query(connection, project_id, optional_params \\ [], opts \\ []) do |
| 537 | + optional_params_config = %{ |
| 538 | + :"$.xgafv" => :query, |
| 539 | + :access_token => :query, |
| 540 | + :alt => :query, |
| 541 | + :callback => :query, |
| 542 | + :fields => :query, |
| 543 | + :key => :query, |
| 544 | + :oauth_token => :query, |
| 545 | + :prettyPrint => :query, |
| 546 | + :quotaUser => :query, |
| 547 | + :uploadType => :query, |
| 548 | + :upload_protocol => :query, |
| 549 | + :body => :body |
| 550 | + } |
| 551 | + |
| 552 | + request = |
| 553 | + Request.new() |
| 554 | + |> Request.method(:post) |
| 555 | + |> Request.url("/v1/projects/{projectId}:runQuery", %{ |
| 556 | + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 557 | + }) |
| 558 | + |> Request.add_optional_params(optional_params_config, optional_params) |
| 559 | + |
| 560 | + connection |
| 561 | + |> Connection.execute(request) |
| 562 | + |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.RunQueryResponse{}]) |
| 563 | + end |
| 564 | + |
| 565 | + @doc """ |
| 566 | + Gets an index. |
| 567 | + |
| 568 | + ## Parameters |
| 569 | + |
| 570 | + - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 571 | + - project_id (String.t): Project ID against which to make the request. |
| 572 | + - index_id (String.t): The resource ID of the index to get. |
| 573 | + - optional_params (keyword()): [optional] Optional parameters |
| 574 | + - :$.xgafv (String.t): V1 error format. |
| 575 | + - :access_token (String.t): OAuth access token. |
| 576 | + - :alt (String.t): Data format for response. |
| 577 | + - :callback (String.t): JSONP |
| 578 | + - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 579 | + - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 580 | + - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 581 | + - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 582 | + - :quotaUser (String.t): 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. |
| 583 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 584 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 344 585 | |
| 345 586 | ## Returns |
| 346 587 | |
| @@ -367,8 +608,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 367 608 | :oauth_token => :query, |
| 368 609 | :prettyPrint => :query, |
| 369 610 | :quotaUser => :query, |
| 370 | - :upload_protocol => :query, |
| 371 | - :uploadType => :query |
| 611 | + :uploadType => :query, |
| 612 | + :upload_protocol => :query |
| 372 613 | } |
| 373 614 | |
| 374 615 | request = |
| @@ -388,13 +629,15 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 388 629 | end |
| 389 630 | |
| 390 631 | @doc """ |
| 391 | - Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results. |
| 632 | + Lists the indexes that match the specified filters. Datastore uses an |
| 633 | + eventually consistent query to fetch the list of indexes and may |
| 634 | + occasionally return stale results. |
| 392 635 | |
| 393 636 | ## Parameters |
| 394 637 | |
| 395 638 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 396 639 | - project_id (String.t): Project ID against which to make the request. |
| 397 | - - optional_params (KeywordList): [optional] Optional parameters |
| 640 | + - optional_params (keyword()): [optional] Optional parameters |
| 398 641 | - :$.xgafv (String.t): V1 error format. |
| 399 642 | - :access_token (String.t): OAuth access token. |
| 400 643 | - :alt (String.t): Data format for response. |
| @@ -404,10 +647,11 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 404 647 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 405 648 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 406 649 | - :quotaUser (String.t): 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. |
| 407 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 408 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 650 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 651 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 409 652 | - :filter (String.t): |
| 410 | - - :pageSize (integer()): The maximum number of items to return. If zero, then all results will be returned. |
| 653 | + - :pageSize (integer()): The maximum number of items to return. If zero, then all results will be |
| 654 | + returned. |
| 411 655 | - :pageToken (String.t): The next_page_token value returned from a previous List request, if any. |
| 412 656 | |
| 413 657 | ## Returns |
| @@ -429,8 +673,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 429 673 | :oauth_token => :query, |
| 430 674 | :prettyPrint => :query, |
| 431 675 | :quotaUser => :query, |
| 432 | - :upload_protocol => :query, |
| 433 676 | :uploadType => :query, |
| 677 | + :upload_protocol => :query, |
| 434 678 | :filter => :query, |
| 435 679 | :pageSize => :query, |
| 436 680 | :pageToken => :query |
| @@ -452,70 +696,22 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 452 696 | end |
| 453 697 | |
| 454 698 | @doc """ |
| 455 | - Looks up entities by key. |
| 456 | - |
| 457 | - ## Parameters |
| 458 | - |
| 459 | - - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 460 | - - project_id (String.t): The ID of the project against which to make the request. |
| 461 | - - optional_params (KeywordList): [optional] Optional parameters |
| 462 | - - :$.xgafv (String.t): V1 error format. |
| 463 | - - :access_token (String.t): OAuth access token. |
| 464 | - - :alt (String.t): Data format for response. |
| 465 | - - :callback (String.t): JSONP |
| 466 | - - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 467 | - - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 468 | - - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 469 | - - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 470 | - - :quotaUser (String.t): 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. |
| 471 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 472 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 473 | - - :body (LookupRequest): |
| 474 | - |
| 475 | - ## Returns |
| 476 | - |
| 477 | - {:ok, %GoogleApi.Datastore.V1.Model.LookupResponse{}} on success |
| 478 | - {:error, info} on failure |
| 479 | - """ |
| 480 | - @spec datastore_projects_lookup(Tesla.Env.client(), String.t(), keyword()) :: |
| 481 | - {:ok, GoogleApi.Datastore.V1.Model.LookupResponse.t()} | {:error, Tesla.Env.t()} |
| 482 | - def datastore_projects_lookup(connection, project_id, optional_params \\ [], opts \\ []) do |
| 483 | - optional_params_config = %{ |
| 484 | - :"$.xgafv" => :query, |
| 485 | - :access_token => :query, |
| 486 | - :alt => :query, |
| 487 | - :callback => :query, |
| 488 | - :fields => :query, |
| 489 | - :key => :query, |
| 490 | - :oauth_token => :query, |
| 491 | - :prettyPrint => :query, |
| 492 | - :quotaUser => :query, |
| 493 | - :upload_protocol => :query, |
| 494 | - :uploadType => :query, |
| 495 | - :body => :body |
| 496 | - } |
| 497 | - |
| 498 | - request = |
| 499 | - Request.new() |
| 500 | - |> Request.method(:post) |
| 501 | - |> Request.url("/v1/projects/{projectId}:lookup", %{ |
| 502 | - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 503 | - }) |
| 504 | - |> Request.add_optional_params(optional_params_config, optional_params) |
| 505 | - |
| 506 | - connection |
| 507 | - |> Connection.execute(request) |
| 508 | - |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.LookupResponse{}]) |
| 509 | - end |
| 510 | - |
| 511 | - @doc """ |
| 512 | - Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. |
| 699 | + Starts asynchronous cancellation on a long-running operation. The server |
| 700 | + makes a best effort to cancel the operation, but success is not |
| 701 | + guaranteed. If the server doesn't support this method, it returns |
| 702 | + `google.rpc.Code.UNIMPLEMENTED`. Clients can use |
| 703 | + Operations.GetOperation or |
| 704 | + other methods to check whether the cancellation succeeded or whether the |
| 705 | + operation completed despite cancellation. On successful cancellation, |
| 706 | + the operation is not deleted; instead, it becomes an operation with |
| 707 | + an Operation.error value with a google.rpc.Status.code of 1, |
| 708 | + corresponding to `Code.CANCELLED`. |
| 513 709 | |
| 514 710 | ## Parameters |
| 515 711 | |
| 516 712 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 517 713 | - name (String.t): The name of the operation resource to be cancelled. |
| 518 | - - optional_params (KeywordList): [optional] Optional parameters |
| 714 | + - optional_params (keyword()): [optional] Optional parameters |
| 519 715 | - :$.xgafv (String.t): V1 error format. |
| 520 716 | - :access_token (String.t): OAuth access token. |
| 521 717 | - :alt (String.t): Data format for response. |
| @@ -525,8 +721,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 525 721 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 526 722 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 527 723 | - :quotaUser (String.t): 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. |
| 528 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 529 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 724 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 725 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 530 726 | |
| 531 727 | ## Returns |
| 532 728 | |
| @@ -546,8 +742,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 546 742 | :oauth_token => :query, |
| 547 743 | :prettyPrint => :query, |
| 548 744 | :quotaUser => :query, |
| 549 | - :upload_protocol => :query, |
| 550 | - :uploadType => :query |
| 745 | + :uploadType => :query, |
| 746 | + :upload_protocol => :query |
| 551 747 | } |
| 552 748 | |
| 553 749 | request = |
| @@ -564,13 +760,16 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 564 760 | end |
| 565 761 | |
| 566 762 | @doc """ |
| 567 | - Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. |
| 763 | + Deletes a long-running operation. This method indicates that the client is |
| 764 | + no longer interested in the operation result. It does not cancel the |
| 765 | + operation. If the server doesn't support this method, it returns |
| 766 | + `google.rpc.Code.UNIMPLEMENTED`. |
| 568 767 | |
| 569 768 | ## Parameters |
| 570 769 | |
| 571 770 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 572 771 | - name (String.t): The name of the operation resource to be deleted. |
| 573 | - - optional_params (KeywordList): [optional] Optional parameters |
| 772 | + - optional_params (keyword()): [optional] Optional parameters |
| 574 773 | - :$.xgafv (String.t): V1 error format. |
| 575 774 | - :access_token (String.t): OAuth access token. |
| 576 775 | - :alt (String.t): Data format for response. |
| @@ -580,8 +779,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 580 779 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 581 780 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 582 781 | - :quotaUser (String.t): 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. |
| 583 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 584 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 782 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 783 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 585 784 | |
| 586 785 | ## Returns |
| 587 786 | |
| @@ -601,8 +800,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 601 800 | :oauth_token => :query, |
| 602 801 | :prettyPrint => :query, |
| 603 802 | :quotaUser => :query, |
| 604 | - :upload_protocol => :query, |
| 605 | - :uploadType => :query |
| 803 | + :uploadType => :query, |
| 804 | + :upload_protocol => :query |
| 606 805 | } |
| 607 806 | |
| 608 807 | request = |
| @@ -619,13 +818,15 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 619 818 | end |
| 620 819 | |
| 621 820 | @doc """ |
| 622 | - Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. |
| 821 | + Gets the latest state of a long-running operation. Clients can use this |
| 822 | + method to poll the operation result at intervals as recommended by the API |
| 823 | + service. |
| 623 824 | |
| 624 825 | ## Parameters |
| 625 826 | |
| 626 827 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 627 828 | - name (String.t): The name of the operation resource. |
| 628 | - - optional_params (KeywordList): [optional] Optional parameters |
| 829 | + - optional_params (keyword()): [optional] Optional parameters |
| 629 830 | - :$.xgafv (String.t): V1 error format. |
| 630 831 | - :access_token (String.t): OAuth access token. |
| 631 832 | - :alt (String.t): Data format for response. |
| @@ -635,8 +836,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 635 836 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 636 837 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 637 838 | - :quotaUser (String.t): 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. |
| 638 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 639 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 839 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 840 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 640 841 | |
| 641 842 | ## Returns |
| 642 843 | |
| @@ -657,8 +858,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 657 858 | :oauth_token => :query, |
| 658 859 | :prettyPrint => :query, |
| 659 860 | :quotaUser => :query, |
| 660 | - :upload_protocol => :query, |
| 661 | - :uploadType => :query |
| 861 | + :uploadType => :query, |
| 862 | + :upload_protocol => :query |
| 662 863 | } |
| 663 864 | |
| 664 865 | request = |
| @@ -677,13 +878,22 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 677 878 | end |
| 678 879 | |
| 679 880 | @doc """ |
| 680 | - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. |
| 881 | + Lists operations that match the specified filter in the request. If the |
| 882 | + server doesn't support this method, it returns `UNIMPLEMENTED`. |
| 883 | + |
| 884 | + NOTE: the `name` binding allows API services to override the binding |
| 885 | + to use different resource name schemes, such as `users/*/operations`. To |
| 886 | + override the binding, API services can add a binding such as |
| 887 | + `"/v1/{name=users/*}/operations"` to their service configuration. |
| 888 | + For backwards compatibility, the default name includes the operations |
| 889 | + collection id, however overriding users must ensure the name binding |
| 890 | + is the parent resource, without the operations collection id. |
| 681 891 | |
| 682 892 | ## Parameters |
| 683 893 | |
| 684 894 | - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 685 | - - name (String.t): The name of the operation's parent resource. |
| 686 | - - optional_params (KeywordList): [optional] Optional parameters |
| 895 | + - name (String.t): The name of the operation's parent resource. |
| 896 | + - optional_params (keyword()): [optional] Optional parameters |
| 687 897 | - :$.xgafv (String.t): V1 error format. |
| 688 898 | - :access_token (String.t): OAuth access token. |
| 689 899 | - :alt (String.t): Data format for response. |
| @@ -693,8 +903,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 693 903 | - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 694 904 | - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 695 905 | - :quotaUser (String.t): 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. |
| 696 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 697 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 906 | + - :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart"). |
| 907 | + - :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart"). |
| 698 908 | - :filter (String.t): The standard list filter. |
| 699 909 | - :pageSize (integer()): The standard list page size. |
| 700 910 | - :pageToken (String.t): The standard list page token. |
| @@ -718,8 +928,8 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 718 928 | :oauth_token => :query, |
| 719 929 | :prettyPrint => :query, |
| 720 930 | :quotaUser => :query, |
| 721 | - :upload_protocol => :query, |
| 722 931 | :uploadType => :query, |
| 932 | + :upload_protocol => :query, |
| 723 933 | :filter => :query, |
| 724 934 | :pageSize => :query, |
| 725 935 | :pageToken => :query |
| @@ -739,175 +949,4 @@ defmodule GoogleApi.Datastore.V1.Api.Projects do | |
| 739 949 | opts ++ [struct: %GoogleApi.Datastore.V1.Model.GoogleLongrunningListOperationsResponse{}] |
| 740 950 | ) |
| 741 951 | end |
| 742 | - |
| 743 | - @doc """ |
| 744 | - Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore. |
| 745 | - |
| 746 | - ## Parameters |
| 747 | - |
| 748 | - - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 749 | - - project_id (String.t): The ID of the project against which to make the request. |
| 750 | - - optional_params (KeywordList): [optional] Optional parameters |
| 751 | - - :$.xgafv (String.t): V1 error format. |
| 752 | - - :access_token (String.t): OAuth access token. |
| 753 | - - :alt (String.t): Data format for response. |
| 754 | - - :callback (String.t): JSONP |
| 755 | - - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 756 | - - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 757 | - - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 758 | - - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 759 | - - :quotaUser (String.t): 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. |
| 760 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 761 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 762 | - - :body (ReserveIdsRequest): |
| 763 | - |
| 764 | - ## Returns |
| 765 | - |
| 766 | - {:ok, %GoogleApi.Datastore.V1.Model.ReserveIdsResponse{}} on success |
| 767 | - {:error, info} on failure |
| 768 | - """ |
| 769 | - @spec datastore_projects_reserve_ids(Tesla.Env.client(), String.t(), keyword()) :: |
| 770 | - {:ok, GoogleApi.Datastore.V1.Model.ReserveIdsResponse.t()} | {:error, Tesla.Env.t()} |
| 771 | - def datastore_projects_reserve_ids(connection, project_id, optional_params \\ [], opts \\ []) do |
| 772 | - optional_params_config = %{ |
| 773 | - :"$.xgafv" => :query, |
| 774 | - :access_token => :query, |
| 775 | - :alt => :query, |
| 776 | - :callback => :query, |
| 777 | - :fields => :query, |
| 778 | - :key => :query, |
| 779 | - :oauth_token => :query, |
| 780 | - :prettyPrint => :query, |
| 781 | - :quotaUser => :query, |
| 782 | - :upload_protocol => :query, |
| 783 | - :uploadType => :query, |
| 784 | - :body => :body |
| 785 | - } |
| 786 | - |
| 787 | - request = |
| 788 | - Request.new() |
| 789 | - |> Request.method(:post) |
| 790 | - |> Request.url("/v1/projects/{projectId}:reserveIds", %{ |
| 791 | - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 792 | - }) |
| 793 | - |> Request.add_optional_params(optional_params_config, optional_params) |
| 794 | - |
| 795 | - connection |
| 796 | - |> Connection.execute(request) |
| 797 | - |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.ReserveIdsResponse{}]) |
| 798 | - end |
| 799 | - |
| 800 | - @doc """ |
| 801 | - Rolls back a transaction. |
| 802 | - |
| 803 | - ## Parameters |
| 804 | - |
| 805 | - - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 806 | - - project_id (String.t): The ID of the project against which to make the request. |
| 807 | - - optional_params (KeywordList): [optional] Optional parameters |
| 808 | - - :$.xgafv (String.t): V1 error format. |
| 809 | - - :access_token (String.t): OAuth access token. |
| 810 | - - :alt (String.t): Data format for response. |
| 811 | - - :callback (String.t): JSONP |
| 812 | - - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 813 | - - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 814 | - - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 815 | - - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 816 | - - :quotaUser (String.t): 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. |
| 817 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 818 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 819 | - - :body (RollbackRequest): |
| 820 | - |
| 821 | - ## Returns |
| 822 | - |
| 823 | - {:ok, %GoogleApi.Datastore.V1.Model.RollbackResponse{}} on success |
| 824 | - {:error, info} on failure |
| 825 | - """ |
| 826 | - @spec datastore_projects_rollback(Tesla.Env.client(), String.t(), keyword()) :: |
| 827 | - {:ok, GoogleApi.Datastore.V1.Model.RollbackResponse.t()} | {:error, Tesla.Env.t()} |
| 828 | - def datastore_projects_rollback(connection, project_id, optional_params \\ [], opts \\ []) do |
| 829 | - optional_params_config = %{ |
| 830 | - :"$.xgafv" => :query, |
| 831 | - :access_token => :query, |
| 832 | - :alt => :query, |
| 833 | - :callback => :query, |
| 834 | - :fields => :query, |
| 835 | - :key => :query, |
| 836 | - :oauth_token => :query, |
| 837 | - :prettyPrint => :query, |
| 838 | - :quotaUser => :query, |
| 839 | - :upload_protocol => :query, |
| 840 | - :uploadType => :query, |
| 841 | - :body => :body |
| 842 | - } |
| 843 | - |
| 844 | - request = |
| 845 | - Request.new() |
| 846 | - |> Request.method(:post) |
| 847 | - |> Request.url("/v1/projects/{projectId}:rollback", %{ |
| 848 | - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 849 | - }) |
| 850 | - |> Request.add_optional_params(optional_params_config, optional_params) |
| 851 | - |
| 852 | - connection |
| 853 | - |> Connection.execute(request) |
| 854 | - |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.RollbackResponse{}]) |
| 855 | - end |
| 856 | - |
| 857 | - @doc """ |
| 858 | - Queries for entities. |
| 859 | - |
| 860 | - ## Parameters |
| 861 | - |
| 862 | - - connection (GoogleApi.Datastore.V1.Connection): Connection to server |
| 863 | - - project_id (String.t): The ID of the project against which to make the request. |
| 864 | - - optional_params (KeywordList): [optional] Optional parameters |
| 865 | - - :$.xgafv (String.t): V1 error format. |
| 866 | - - :access_token (String.t): OAuth access token. |
| 867 | - - :alt (String.t): Data format for response. |
| 868 | - - :callback (String.t): JSONP |
| 869 | - - :fields (String.t): Selector specifying which fields to include in a partial response. |
| 870 | - - :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. |
| 871 | - - :oauth_token (String.t): OAuth 2.0 token for the current user. |
| 872 | - - :prettyPrint (boolean()): Returns response with indentations and line breaks. |
| 873 | - - :quotaUser (String.t): 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. |
| 874 | - - :upload_protocol (String.t): Upload protocol for media (e.g. \"raw\", \"multipart\"). |
| 875 | - - :uploadType (String.t): Legacy upload protocol for media (e.g. \"media\", \"multipart\"). |
| 876 | - - :body (RunQueryRequest): |
| 877 | - |
| 878 | - ## Returns |
| 879 | - |
| 880 | - {:ok, %GoogleApi.Datastore.V1.Model.RunQueryResponse{}} on success |
| 881 | - {:error, info} on failure |
| 882 | - """ |
| 883 | - @spec datastore_projects_run_query(Tesla.Env.client(), String.t(), keyword()) :: |
| 884 | - {:ok, GoogleApi.Datastore.V1.Model.RunQueryResponse.t()} | {:error, Tesla.Env.t()} |
| 885 | - def datastore_projects_run_query(connection, project_id, optional_params \\ [], opts \\ []) do |
| 886 | - optional_params_config = %{ |
| 887 | - :"$.xgafv" => :query, |
| 888 | - :access_token => :query, |
| 889 | - :alt => :query, |
| 890 | - :callback => :query, |
| 891 | - :fields => :query, |
| 892 | - :key => :query, |
| 893 | - :oauth_token => :query, |
| 894 | - :prettyPrint => :query, |
| 895 | - :quotaUser => :query, |
| 896 | - :upload_protocol => :query, |
| 897 | - :uploadType => :query, |
| 898 | - :body => :body |
| 899 | - } |
| 900 | - |
| 901 | - request = |
| 902 | - Request.new() |
| 903 | - |> Request.method(:post) |
| 904 | - |> Request.url("/v1/projects/{projectId}:runQuery", %{ |
| 905 | - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) |
| 906 | - }) |
| 907 | - |> Request.add_optional_params(optional_params_config, optional_params) |
| 908 | - |
| 909 | - connection |
| 910 | - |> Connection.execute(request) |
| 911 | - |> Response.decode(opts ++ [struct: %GoogleApi.Datastore.V1.Model.RunQueryResponse{}]) |
| 912 | - end |
| 913 952 | end |
| @@ -1,4 +1,4 @@ | |
| 1 | - # Copyright 2017 Google Inc. |
| 1 | + # Copyright 2019 Google LLC |
| 2 2 | # |
| 3 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 4 | # you may not use this file except in compliance with the License. |
| @@ -12,8 +12,7 @@ | |
| 12 12 | # See the License for the specific language governing permissions and |
| 13 13 | # limitations under the License. |
| 14 14 | |
| 15 | - # NOTE: This class is auto generated by the swagger code generator program. |
| 16 | - # https://github.com/swagger-api/swagger-codegen.git |
| 15 | + # NOTE: This class is auto generated by the elixir code generator program. |
| 17 16 | # Do not edit the class manually. |
| 18 17 | |
| 19 18 | defmodule GoogleApi.Datastore.V1.Connection do |
| @@ -25,9 +24,10 @@ defmodule GoogleApi.Datastore.V1.Connection do | |
| 25 24 | scopes: [ |
| 26 25 | # View and manage your data across Google Cloud Platform services |
| 27 26 | "https://www.googleapis.com/auth/cloud-platform", |
| 27 | + |
| 28 28 | # View and manage your Google Cloud Datastore data |
| 29 29 | "https://www.googleapis.com/auth/datastore" |
| 30 30 | ], |
| 31 31 | otp_app: :google_api_datastore, |
| 32 | - base_url: "https://datastore.googleapis.com" |
| 32 | + base_url: "https://datastore.googleapis.com/" |
| 33 33 | end |
| @@ -1,25 +0,0 @@ | |
| 1 | - # Copyright 2017 Google Inc. |
| 2 | - # |
| 3 | - # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - # you may not use this file except in compliance with the License. |
| 5 | - # You may obtain a copy of the License at |
| 6 | - # |
| 7 | - # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - # |
| 9 | - # Unless required by applicable law or agreed to in writing, software |
| 10 | - # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - # See the License for the specific language governing permissions and |
| 13 | - # limitations under the License. |
| 14 | - |
| 15 | - # NOTE: This class is auto generated by the swagger code generator program. |
| 16 | - # https://github.com/swagger-api/swagger-codegen.git |
| 17 | - # Do not edit the class manually. |
| 18 | - |
| 19 | - defmodule GoogleApi.Datastore.V1.Deserializer do |
| 20 | - @moduledoc """ |
| 21 | - Helper functions for deserializing responses into models. |
| 22 | - |
| 23 | - This module is no longer used. Please use GoogleApi.Gax.ModelBase instead. |
| 24 | - """ |
| 25 | - end |
| @@ -1,4 +1,4 @@ | |
| 1 | - # Copyright 2017 Google Inc. |
| 1 | + # Copyright 2019 Google LLC |
| 2 2 | # |
| 3 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 4 | # you may not use this file except in compliance with the License. |
| @@ -12,8 +12,7 @@ | |
| 12 12 | # See the License for the specific language governing permissions and |
| 13 13 | # limitations under the License. |
| 14 14 | |
| 15 | - # NOTE: This class is auto generated by the swagger code generator program. |
| 16 | - # https://github.com/swagger-api/swagger-codegen.git |
| 15 | + # NOTE: This class is auto generated by the elixir code generator program. |
| 17 16 | # Do not edit the class manually. |
| 18 17 | |
| 19 18 | defmodule GoogleApi.Datastore.V1.Model.AllocateIdsRequest do |
| @@ -22,7 +21,8 @@ defmodule GoogleApi.Datastore.V1.Model.AllocateIdsRequest do | |
| 22 21 | |
| 23 22 | ## Attributes |
| 24 23 | |
| 25 | - - keys ([Key]): A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only. Defaults to: `null`. |
| 24 | + - keys (list(GoogleApi.Datastore.V1.Model.Key.t)): A list of keys with incomplete key paths for which to allocate IDs. |
| 25 | + No key may be reserved/read-only. Defaults to `nil`. |
| 26 26 | """ |
| 27 27 | |
| 28 28 | use GoogleApi.Gax.ModelBase |
Loading more files…