google-apis-mybusinessaccountmanagement_v1 0.2.0 → 0.3.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 +5 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/classes.rb +26 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/mybusinessaccountmanagement_v1/representations.rb +14 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/service.rb +35 -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: 3e6fc60d5c0419fbd0a2b4e02c393d360732000950d29a0d766d98414eb9f179
|
4
|
+
data.tar.gz: fe9a5d77293820c6cc6cb9122f4c3bff8bc23701e61282ce27fc5b813c6baadd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06b254c1cc1baa475ebb616faad6eb2cd111ebd87dd9306ab327451581ec8eda4bfc65465641e453806dfdd2b594fb4f8055e365c6f63488ae5d8a28001f904
|
7
|
+
data.tar.gz: 145b785629974a193cb8a014dffcc7f789a4febca5a7bdb5e8e69af3b74578e5e1270d77e70f30c9d72c9d4ab5b33de246cf1e3ea25b5043df18b216de77a4fc
|
data/CHANGELOG.md
CHANGED
@@ -529,6 +529,32 @@ module Google
|
|
529
529
|
@location_name = args[:location_name] if args.key?(:location_name)
|
530
530
|
end
|
531
531
|
end
|
532
|
+
|
533
|
+
# Request message for AccessControl.TransferLocation.
|
534
|
+
class TransferLocationRequest
|
535
|
+
include Google::Apis::Core::Hashable
|
536
|
+
|
537
|
+
# Required. Name of the account resource to transfer the location to (for
|
538
|
+
# example, "accounts/`account`").
|
539
|
+
# Corresponds to the JSON property `destinationAccount`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :destination_account
|
542
|
+
|
543
|
+
# Required. The name of the location to transfer. `locations/`location_id``.
|
544
|
+
# Corresponds to the JSON property `name`
|
545
|
+
# @return [String]
|
546
|
+
attr_accessor :name
|
547
|
+
|
548
|
+
def initialize(**args)
|
549
|
+
update!(**args)
|
550
|
+
end
|
551
|
+
|
552
|
+
# Update properties of this object
|
553
|
+
def update!(**args)
|
554
|
+
@destination_account = args[:destination_account] if args.key?(:destination_account)
|
555
|
+
@name = args[:name] if args.key?(:name)
|
556
|
+
end
|
557
|
+
end
|
532
558
|
end
|
533
559
|
end
|
534
560
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MybusinessaccountmanagementV1
|
18
18
|
# Version of the google-apis-mybusinessaccountmanagement_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210329"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class TransferLocationRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class AcceptInvitationRequest
|
104
110
|
# @private
|
105
111
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -225,6 +231,14 @@ module Google
|
|
225
231
|
property :location_name, as: 'locationName'
|
226
232
|
end
|
227
233
|
end
|
234
|
+
|
235
|
+
class TransferLocationRequest
|
236
|
+
# @private
|
237
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
238
|
+
property :destination_account, as: 'destinationAccount'
|
239
|
+
property :name, as: 'name'
|
240
|
+
end
|
241
|
+
end
|
228
242
|
end
|
229
243
|
end
|
230
244
|
end
|
@@ -449,6 +449,41 @@ module Google
|
|
449
449
|
execute_or_queue_command(command, &block)
|
450
450
|
end
|
451
451
|
|
452
|
+
# Moves a location from an account that the user owns to another account that
|
453
|
+
# the same user administers. The user must be an owner of the account the
|
454
|
+
# location is currently associated with and must also be at least a manager of
|
455
|
+
# the destination account.
|
456
|
+
# @param [String] locations_id
|
457
|
+
# @param [Google::Apis::MybusinessaccountmanagementV1::TransferLocationRequest] transfer_location_request_object
|
458
|
+
# @param [String] fields
|
459
|
+
# Selector specifying which fields to include in a partial response.
|
460
|
+
# @param [String] quota_user
|
461
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
462
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
463
|
+
# @param [Google::Apis::RequestOptions] options
|
464
|
+
# Request-specific options
|
465
|
+
#
|
466
|
+
# @yield [result, err] Result & error if block supplied
|
467
|
+
# @yieldparam result [Google::Apis::MybusinessaccountmanagementV1::Empty] parsed result object
|
468
|
+
# @yieldparam err [StandardError] error object if request failed
|
469
|
+
#
|
470
|
+
# @return [Google::Apis::MybusinessaccountmanagementV1::Empty]
|
471
|
+
#
|
472
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
473
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
474
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
475
|
+
def transfer_location(locations_id, transfer_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
476
|
+
command = make_simple_command(:post, 'v1/locations/{locationsId}:transferLocation', options)
|
477
|
+
command.request_representation = Google::Apis::MybusinessaccountmanagementV1::TransferLocationRequest::Representation
|
478
|
+
command.request_object = transfer_location_request_object
|
479
|
+
command.response_representation = Google::Apis::MybusinessaccountmanagementV1::Empty::Representation
|
480
|
+
command.response_class = Google::Apis::MybusinessaccountmanagementV1::Empty
|
481
|
+
command.params['locationsId'] = locations_id unless locations_id.nil?
|
482
|
+
command.query['fields'] = fields unless fields.nil?
|
483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
484
|
+
execute_or_queue_command(command, &block)
|
485
|
+
end
|
486
|
+
|
452
487
|
# Invites the specified user to become an administrator for the specified
|
453
488
|
# location. The invitee must accept the invitation in order to be granted access
|
454
489
|
# to the location. See AcceptInvitation to programmatically accept an invitation.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-mybusinessaccountmanagement_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-04-05 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-mybusinessaccountmanagement_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessaccountmanagement_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessaccountmanagement_v1/v0.3.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-mybusinessaccountmanagement_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|