google-apis-dataportability_v1beta 0.11.0 → 0.12.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 +4 -0
- data/lib/google/apis/dataportability_v1beta/classes.rb +41 -0
- data/lib/google/apis/dataportability_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/dataportability_v1beta/representations.rb +26 -0
- data/lib/google/apis/dataportability_v1beta/service.rb +30 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbabac1e7f85c71ce00755cbd24ac92f69193d548c382c3a61cf7c7a8ed2db0c
|
4
|
+
data.tar.gz: 2093bf9f97871cc1f4d44bb65d976379ad7491a6b44c7134c48482c29658359f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119694985f7e87e9084d2f6657385739b669aeb3089d968c8b73308abf5a31e378d163236b72908c7c891db9bfd6fa4cb94ed28e7b610aae32040c9eaa59c84e
|
7
|
+
data.tar.gz: 384a454c4a1b6708488ebac5106092de5835b9e54259d2e11ae1aace14032ceab9f909d56db9089757f6bebcf98c072007afe973d4af56cefac46deb5184de13
|
data/CHANGELOG.md
CHANGED
@@ -48,6 +48,47 @@ module Google
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
+
# Request to check the token's access type. All required information is derived
|
52
|
+
# from the attached OAuth token.
|
53
|
+
class CheckAccessTypeRequest
|
54
|
+
include Google::Apis::Core::Hashable
|
55
|
+
|
56
|
+
def initialize(**args)
|
57
|
+
update!(**args)
|
58
|
+
end
|
59
|
+
|
60
|
+
# Update properties of this object
|
61
|
+
def update!(**args)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Response to checking the token's access type.
|
66
|
+
class CheckAccessTypeResponse
|
67
|
+
include Google::Apis::Core::Hashable
|
68
|
+
|
69
|
+
# Jobs initiated with this token will be one-time if any requested resources
|
70
|
+
# have one-time access.
|
71
|
+
# Corresponds to the JSON property `oneTimeResources`
|
72
|
+
# @return [Array<String>]
|
73
|
+
attr_accessor :one_time_resources
|
74
|
+
|
75
|
+
# Jobs initiated with this token will be time-based if all requested resources
|
76
|
+
# have time-based access.
|
77
|
+
# Corresponds to the JSON property `timeBasedResources`
|
78
|
+
# @return [Array<String>]
|
79
|
+
attr_accessor :time_based_resources
|
80
|
+
|
81
|
+
def initialize(**args)
|
82
|
+
update!(**args)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Update properties of this object
|
86
|
+
def update!(**args)
|
87
|
+
@one_time_resources = args[:one_time_resources] if args.key?(:one_time_resources)
|
88
|
+
@time_based_resources = args[:time_based_resources] if args.key?(:time_based_resources)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
51
92
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
52
93
|
# messages in your APIs. A typical example is to use it as the request or the
|
53
94
|
# 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 DataportabilityV1beta
|
18
18
|
# Version of the google-apis-dataportability_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250305"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,18 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class CheckAccessTypeRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class CheckAccessTypeResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class Empty
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
@@ -88,6 +100,20 @@ module Google
|
|
88
100
|
end
|
89
101
|
end
|
90
102
|
|
103
|
+
class CheckAccessTypeRequest
|
104
|
+
# @private
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class CheckAccessTypeResponse
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
collection :one_time_resources, as: 'oneTimeResources'
|
113
|
+
collection :time_based_resources, as: 'timeBasedResources'
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
91
117
|
class Empty
|
92
118
|
# @private
|
93
119
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -54,6 +54,36 @@ module Google
|
|
54
54
|
@batch_path = 'batch'
|
55
55
|
end
|
56
56
|
|
57
|
+
# Gets the access type of the token.
|
58
|
+
# @param [Google::Apis::DataportabilityV1beta::CheckAccessTypeRequest] check_access_type_request_object
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def check_access_type(check_access_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:post, 'v1beta/accessType:check', options)
|
78
|
+
command.request_representation = Google::Apis::DataportabilityV1beta::CheckAccessTypeRequest::Representation
|
79
|
+
command.request_object = check_access_type_request_object
|
80
|
+
command.response_representation = Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse::Representation
|
81
|
+
command.response_class = Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
57
87
|
# Cancels a Portability Archive job.
|
58
88
|
# @param [String] name
|
59
89
|
# Required. The Archive job ID you're canceling. This is returned by the
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dataportability_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-09 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataportability_v1beta/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dataportability_v1beta/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dataportability_v1beta/v0.12.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataportability_v1beta
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|