google-apis-firebaseml_v1beta2 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/firebaseml_v1beta2/classes.rb +38 -0
- data/lib/google/apis/firebaseml_v1beta2/gem_version.rb +3 -3
- data/lib/google/apis/firebaseml_v1beta2/representations.rb +16 -0
- data/lib/google/apis/firebaseml_v1beta2/service.rb +32 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd63ead64103c621f585161aa693e9ab26db2bb29c72f8d6fb146c111b92363
|
4
|
+
data.tar.gz: 788d60a8b1074c06675570278c7b9cc13a5fe0c09d380cdba6f0bd6d4ae91897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a739d0976e6f623efdd580c3f3b863e8f27a48bc1245c7e2f62f436294d4aa3ae2f4440bb8a54f600ac362e4124a2420126e85be417abf2632911624b34bd02
|
7
|
+
data.tar.gz: 9f8fe15c2a4e7f61832ea924507627d2e2e7a363170c969dea9ab1a3badd543efd145c9746d16df6436319c4be8d32a4fbe047955ad83842c1e3aa9969ff9809
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-firebaseml_v1beta2
|
2
2
|
|
3
|
+
### v0.2.0 (2021-02-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210203
|
6
|
+
* Regenerated using generator version 0.1.2
|
7
|
+
|
3
8
|
### v0.1.0 (2021-01-07)
|
4
9
|
|
5
10
|
* Regenerated using generator version 0.1.1
|
@@ -22,6 +22,44 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebasemlV1beta2
|
24
24
|
|
25
|
+
# The response for downloading a model to device.
|
26
|
+
class DownloadModelResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Output only. A download URI for the model/zip file.
|
30
|
+
# Corresponds to the JSON property `downloadUri`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :download_uri
|
33
|
+
|
34
|
+
# Output only. The time that the download URI link expires. If the link has
|
35
|
+
# expired, the REST call must be repeated.
|
36
|
+
# Corresponds to the JSON property `expireTime`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :expire_time
|
39
|
+
|
40
|
+
# Output only. The format of the model being downloaded.
|
41
|
+
# Corresponds to the JSON property `modelFormat`
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :model_format
|
44
|
+
|
45
|
+
# Output only. The size of the file(s), if this information is available.
|
46
|
+
# Corresponds to the JSON property `sizeBytes`
|
47
|
+
# @return [Fixnum]
|
48
|
+
attr_accessor :size_bytes
|
49
|
+
|
50
|
+
def initialize(**args)
|
51
|
+
update!(**args)
|
52
|
+
end
|
53
|
+
|
54
|
+
# Update properties of this object
|
55
|
+
def update!(**args)
|
56
|
+
@download_uri = args[:download_uri] if args.key?(:download_uri)
|
57
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
58
|
+
@model_format = args[:model_format] if args.key?(:model_format)
|
59
|
+
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
25
63
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
26
64
|
# messages in your APIs. A typical example is to use it as the request or the
|
27
65
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module FirebasemlV1beta2
|
18
18
|
# Version of the google-apis-firebaseml_v1beta2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebasemlV1beta2
|
24
24
|
|
25
|
+
class DownloadModelResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class Empty
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -70,6 +76,16 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class DownloadModelResponse
|
80
|
+
# @private
|
81
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
property :download_uri, as: 'downloadUri'
|
83
|
+
property :expire_time, as: 'expireTime'
|
84
|
+
property :model_format, as: 'modelFormat'
|
85
|
+
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
73
89
|
class Empty
|
74
90
|
# @private
|
75
91
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -115,6 +115,38 @@ module Google
|
|
115
115
|
execute_or_queue_command(command, &block)
|
116
116
|
end
|
117
117
|
|
118
|
+
# Gets Download information for a model. This is meant for downloading model
|
119
|
+
# resources onto devices. It gives very limited information about the model.
|
120
|
+
# @param [String] name
|
121
|
+
# Required. The name of the model to download. The name must have the form `
|
122
|
+
# projects/`project`/models/`model``
|
123
|
+
# @param [String] fields
|
124
|
+
# Selector specifying which fields to include in a partial response.
|
125
|
+
# @param [String] quota_user
|
126
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
127
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
128
|
+
# @param [Google::Apis::RequestOptions] options
|
129
|
+
# Request-specific options
|
130
|
+
#
|
131
|
+
# @yield [result, err] Result & error if block supplied
|
132
|
+
# @yieldparam result [Google::Apis::FirebasemlV1beta2::DownloadModelResponse] parsed result object
|
133
|
+
# @yieldparam err [StandardError] error object if request failed
|
134
|
+
#
|
135
|
+
# @return [Google::Apis::FirebasemlV1beta2::DownloadModelResponse]
|
136
|
+
#
|
137
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
138
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
139
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
140
|
+
def download_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
141
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:download', options)
|
142
|
+
command.response_representation = Google::Apis::FirebasemlV1beta2::DownloadModelResponse::Representation
|
143
|
+
command.response_class = Google::Apis::FirebasemlV1beta2::DownloadModelResponse
|
144
|
+
command.params['name'] = name unless name.nil?
|
145
|
+
command.query['fields'] = fields unless fields.nil?
|
146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
147
|
+
execute_or_queue_command(command, &block)
|
148
|
+
end
|
149
|
+
|
118
150
|
# Gets a model resource.
|
119
151
|
# @param [String] name
|
120
152
|
# Required. The name of the model to get. The name must have the form `projects/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-firebaseml_v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseml_v1beta2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v1beta2/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v1beta2/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseml_v1beta2
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Firebase ML API V1beta2
|