google-apis-dataportability_v1 0.7.0 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd6ea34f5fc4109582f5fe90027a1e5801574f8ffc64c7aa1cf311cf85c33063
4
- data.tar.gz: 5e56d2cb84539b64bcfbacbb1f011a25a24f46da4c5e3e501a581291c7e73d83
3
+ metadata.gz: 3ca7bdaa316b0ad01ba59291f37a2e3b28996b71018e65a3b8ab87e565d04973
4
+ data.tar.gz: 3d6ac60578d3d90351784fc4c42e5824fee585a226958dd767a7257a425f4a67
5
5
  SHA512:
6
- metadata.gz: 1421f62ba5d277af6dd11079544733ba81e99ecb2a91f324b427a329d53417ec7c2cceb747f6db83b5384f2e5865688919a8eb0ed709ab0a2ba8871c7581d8c7
7
- data.tar.gz: 0abbb93c98ba0347a1d9dabb385107340f48171d0bbcbfc77fb71f46c4236009bbff0588b6164c889840c31c1e4fbe3ec043a3b2dbab84cd97f9b1ac6b8a8c17
6
+ metadata.gz: 94d7c2af01cef29d8527a89a1fb3a9f66d64184b2023896c8016253f70fb41769323a5e427710cf53b61e2832c6ec68e1e46ce2657802410bc810db8cdd1116b
7
+ data.tar.gz: fe30eec5348f1e038899d31d2881222003df1355597aa0e976e474501cfd5b5de713b1e8f32ef281c4e65fcda1410572205cf7e4154a71c997e5e27188acb45e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dataportability_v1
2
2
 
3
+ ### v0.9.0 (2025-05-04)
4
+
5
+ * Regenerated using generator version 0.17.0
6
+
7
+ ### v0.8.0 (2025-03-09)
8
+
9
+ * Regenerated from discovery document revision 20250305
10
+
3
11
  ### v0.7.0 (2025-02-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20250212
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/data-portability) may
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -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 DataportabilityV1
18
18
  # Version of the google-apis-dataportability_v1 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250212"
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::DataportabilityV1::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::DataportabilityV1::CheckAccessTypeResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::DataportabilityV1::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, 'v1/accessType:check', options)
78
+ command.request_representation = Google::Apis::DataportabilityV1::CheckAccessTypeRequest::Representation
79
+ command.request_object = check_access_type_request_object
80
+ command.response_representation = Google::Apis::DataportabilityV1::CheckAccessTypeResponse::Representation
81
+ command.response_class = Google::Apis::DataportabilityV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 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_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-dataportability_v1/v0.7.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dataportability_v1/v0.9.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataportability_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.8
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Data Portability API V1
79
79
  test_files: []