google-apis-firebasedatabase_v1beta 0.10.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e4ba23954f7c2866a456c21e228675e2a4b9377f306e0e864e787fa9a1db6d2
4
- data.tar.gz: 86c5fc0c779803b377f77cb091f2eda2dbc6f50d8c200a67c4f0319893a65eac
3
+ metadata.gz: 0ba1f1477f8950a17a1a9591edd39519442bbe82fbfd7b7aba608e6b5933eb61
4
+ data.tar.gz: 7541a05ef608fcababaa9d5e4966e485c50b8a64938251e28bc698f512ff4c37
5
5
  SHA512:
6
- metadata.gz: 316f1d261e7f977b37e840efa7099862f9d094c4386b32be03064b6123ada1e478b5b73770bd28adf91c6209c604f51ce5ee64521116dc638258dff390324ca9
7
- data.tar.gz: e5e40bb3e40be67bbc4c4e60edd71b25a0a7e6d3038e38f2d3ccbd1bd4ed3d256f8798dd2e6338b8707d765ff8eab000d937a090dd9a2965f9fbf19f2e5b0fd1
6
+ metadata.gz: 712ad388df285dea5089c81b7d4890112ea50434c466ce807f5c3f32561c64c8d5865359351fe454f0188addcbc81051fab7eac8d57b06ac372d33e79ec69afe
7
+ data.tar.gz: 9d8391ef306d0cba4db4c9e11e41e3f8985c7ac92456bf8cc7ca9ee4b267a97951d2fe779ffa14432fd7c38d7fb9a995ed310645fd33df64c71e6b5bdc3d597f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Release history for google-apis-firebasedatabase_v1beta
2
2
 
3
+ ### v0.13.0 (2022-06-19)
4
+
5
+ * Regenerated from discovery document revision 20220615
6
+ * Regenerated using generator version 0.7.0
7
+
8
+ ### v0.12.0 (2022-06-06)
9
+
10
+ * Regenerated from discovery document revision 20220602
11
+ * Regenerated using generator version 0.5.0
12
+
13
+ ### v0.11.0 (2022-04-02)
14
+
15
+ * Regenerated from discovery document revision 20220330
16
+ * Regenerated using generator version 0.4.1
17
+
3
18
  ### v0.10.0 (2021-12-14)
4
19
 
5
20
  * Unspecified changes
@@ -28,7 +28,7 @@ module Google
28
28
  class DatabaseInstance
29
29
  include Google::Apis::Core::Hashable
30
30
 
31
- # Immutable. The globally unique hostname of the database.
31
+ # Output only. Output Only. The globally unique hostname of the database.
32
32
  # Corresponds to the JSON property `databaseUrl`
33
33
  # @return [String]
34
34
  attr_accessor :database_url
@@ -39,19 +39,19 @@ module Google
39
39
  # @return [String]
40
40
  attr_accessor :name
41
41
 
42
- # The resource name of the project this instance belongs to. For example: `
43
- # projects/`project-number``.
42
+ # Output only. The resource name of the project this instance belongs to. For
43
+ # example: `projects/`project-number``.
44
44
  # Corresponds to the JSON property `project`
45
45
  # @return [String]
46
46
  attr_accessor :project
47
47
 
48
- # The database's lifecycle state. Read-only.
48
+ # Output only. The database's lifecycle state. Read-only.
49
49
  # Corresponds to the JSON property `state`
50
50
  # @return [String]
51
51
  attr_accessor :state
52
52
 
53
- # The database instance type. On creation only USER_DATABASE is allowed, which
54
- # is also the default when omitted.
53
+ # Immutable. The database instance type. On creation only USER_DATABASE is
54
+ # allowed, which is also the default when omitted.
55
55
  # Corresponds to the JSON property `type`
56
56
  # @return [String]
57
57
  attr_accessor :type
@@ -124,6 +124,19 @@ module Google
124
124
  def update!(**args)
125
125
  end
126
126
  end
127
+
128
+ # The request sent to UndeleteDatabaseInstance method.
129
+ class UndeleteDatabaseInstanceRequest
130
+ include Google::Apis::Core::Hashable
131
+
132
+ def initialize(**args)
133
+ update!(**args)
134
+ end
135
+
136
+ # Update properties of this object
137
+ def update!(**args)
138
+ end
139
+ end
127
140
  end
128
141
  end
129
142
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebasedatabaseV1beta
18
18
  # Version of the google-apis-firebasedatabase_v1beta gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210809"
25
+ REVISION = "20220615"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class UndeleteDatabaseInstanceRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class DatabaseInstance
50
56
  # @private
51
57
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -77,6 +83,12 @@ module Google
77
83
  class Representation < Google::Apis::Core::JsonRepresentation
78
84
  end
79
85
  end
86
+
87
+ class UndeleteDatabaseInstanceRequest
88
+ # @private
89
+ class Representation < Google::Apis::Core::JsonRepresentation
90
+ end
91
+ end
80
92
  end
81
93
  end
82
94
  end
@@ -95,10 +95,11 @@ module Google
95
95
  execute_or_queue_command(command, &block)
96
96
  end
97
97
 
98
- # Marks a DatabaseInstance to be deleted. The DatabaseInstance will be purged
99
- # within 30 days. The default database cannot be deleted. IDs for deleted
100
- # database instances may never be recovered or re-used. The Database may only be
101
- # deleted if it is already in a DISABLED state.
98
+ # Marks a DatabaseInstance to be deleted. The DatabaseInstance will be set to
99
+ # the DELETED state for 20 days, and will be purged within 30 days. The default
100
+ # database cannot be deleted. IDs for deleted database instances may never be
101
+ # recovered or re-used. The Database may only be deleted if it is already in a
102
+ # DISABLED state.
102
103
  # @param [String] name
103
104
  # The fully qualified resource name of the database instance, in the form: `
104
105
  # projects/`project-number`/locations/`location-id`/instances/`database-id``
@@ -217,6 +218,8 @@ module Google
217
218
  # @param [String] page_token
218
219
  # Token returned from a previous call to `ListDatabaseInstances` indicating
219
220
  # where in the set of database instances to resume listing.
221
+ # @param [Boolean] show_deleted
222
+ # Indicate that DatabaseInstances in the `DELETED` state should also be returned.
220
223
  # @param [String] fields
221
224
  # Selector specifying which fields to include in a partial response.
222
225
  # @param [String] quota_user
@@ -234,13 +237,14 @@ module Google
234
237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
237
- def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
240
+ def list_project_location_instances(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
238
241
  command = make_simple_command(:get, 'v1beta/{+parent}/instances', options)
239
242
  command.response_representation = Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse::Representation
240
243
  command.response_class = Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse
241
244
  command.params['parent'] = parent unless parent.nil?
242
245
  command.query['pageSize'] = page_size unless page_size.nil?
243
246
  command.query['pageToken'] = page_token unless page_token.nil?
247
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
244
248
  command.query['fields'] = fields unless fields.nil?
245
249
  command.query['quotaUser'] = quota_user unless quota_user.nil?
246
250
  execute_or_queue_command(command, &block)
@@ -281,6 +285,45 @@ module Google
281
285
  command.query['quotaUser'] = quota_user unless quota_user.nil?
282
286
  execute_or_queue_command(command, &block)
283
287
  end
288
+
289
+ # Restores a DatabaseInstance that was previously marked to be deleted. After
290
+ # the delete method is used, DatabaseInstances are set to the DELETED state for
291
+ # 20 days, and will be purged within 30 days. Databases in the DELETED state can
292
+ # be undeleted without losing any data. This method may only be used on a
293
+ # DatabaseInstance in the DELETED state. Purged DatabaseInstances may not be
294
+ # recovered.
295
+ # @param [String] name
296
+ # The fully qualified resource name of the database instance, in the form: `
297
+ # projects/`project-number`/locations/`location-id`/instances/`database-id``
298
+ # @param [Google::Apis::FirebasedatabaseV1beta::UndeleteDatabaseInstanceRequest] undelete_database_instance_request_object
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
+ # @param [String] quota_user
302
+ # Available to use for quota purposes for server-side applications. Can be any
303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
304
+ # @param [Google::Apis::RequestOptions] options
305
+ # Request-specific options
306
+ #
307
+ # @yield [result, err] Result & error if block supplied
308
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object
309
+ # @yieldparam err [StandardError] error object if request failed
310
+ #
311
+ # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance]
312
+ #
313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
316
+ def undelete_database_instance(name, undelete_database_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
317
+ command = make_simple_command(:post, 'v1beta/{+name}:undelete', options)
318
+ command.request_representation = Google::Apis::FirebasedatabaseV1beta::UndeleteDatabaseInstanceRequest::Representation
319
+ command.request_object = undelete_database_instance_request_object
320
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
321
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
322
+ command.params['name'] = name unless name.nil?
323
+ command.query['fields'] = fields unless fields.nil?
324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ execute_or_queue_command(command, &block)
326
+ end
284
327
 
285
328
  protected
286
329
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebasedatabase_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.6'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
61
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebasedatabase_v1beta/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebasedatabase_v1beta/v0.10.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebasedatabase_v1beta/v0.13.0
63
63
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebasedatabase_v1beta
64
64
  post_install_message:
65
65
  rdoc_options: []
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.3.4
79
+ rubygems_version: 3.3.14
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Simple REST client for Firebase Realtime Database Management API V1beta