google-apis-firebaseml_v1beta2 0.1.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/firebaseml_v1beta2.rb +1 -1
- 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 +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b449eeec7932583fa36c1f997069d43dbeeaa1cec835af9cac8b28a1efca29f1
|
4
|
+
data.tar.gz: fcab0ce49e6edceda193831b725b6ceb00d2a5a594ae9320ebcf4f474c4f471b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c47d844bae8d768b063de3b28c4cd4a19804af643b45dacae23a13e3a42d3fa0a901d95ca953dd9b304df0aea6e6462e34f32819b5036c274a9f6689577e1a6
|
7
|
+
data.tar.gz: fb8ca1983448533d53dde2a6123a10d95163b440084e0dcdf9712c84a77fde37b345973544ec766acdd02f578b6cc48552b257aa3ea2266960c22b90409b99d3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-firebaseml_v1beta2
|
2
2
|
|
3
|
+
### v0.6.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.3.0
|
6
|
+
|
7
|
+
### v0.5.0 (2021-05-19)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.4.0 (2021-03-24)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210322
|
14
|
+
* Regenerated using generator version 0.2.0
|
15
|
+
|
16
|
+
### v0.3.0 (2021-03-04)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.2.0 (2021-02-05)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210203
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1beta2'
|
31
31
|
|
32
|
-
#
|
32
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210322"
|
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,29 +1,35 @@
|
|
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.6.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-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Firebase ML API V1beta2. Simple REST
|
28
34
|
clients are Ruby client libraries that provide access to Google services via their
|
29
35
|
HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v1beta2/v0.6.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseml_v1beta2
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
68
|
requirements:
|
63
69
|
- - ">="
|
64
70
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
71
|
+
version: '2.5'
|
66
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
74
|
- - ">="
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Firebase ML API V1beta2
|