google-apis-domains_v1alpha2 0.6.0 → 0.10.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 +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/domains_v1alpha2/classes.rb +210 -67
- data/lib/google/apis/domains_v1alpha2/gem_version.rb +3 -3
- data/lib/google/apis/domains_v1alpha2/representations.rb +53 -0
- data/lib/google/apis/domains_v1alpha2/service.rb +100 -12
- data/lib/google/apis/domains_v1alpha2.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c19719d4488a5f0d9577485b3b190f4ac7632e78f52aa845d8e100353c810d8
|
4
|
+
data.tar.gz: 34198eea56989dc7487819753d692ed8a63ba6037985854c81a4bcf709bb78d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 200ff8d1589a066bb49694547fcf7421ee9c6eca089507d060670ffe744b0cc2d34abd84ff33080670c6f2a729babb4e502ee7e4b2daa24824765bdae94f5e32
|
7
|
+
data.tar.gz: '083c6262d5a8676b3bdf16e7b9c6166e6d51af216a2bc0795ea25aa03d84241c157634d5c3cf1f44ae6db7ddb68f1bb0155ac5cd8ea46775a275963ccd5a2981'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-domains_v1alpha2
|
2
2
|
|
3
|
+
### v0.10.0 (2021-10-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211019
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.9.0 (2021-10-09)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211004
|
11
|
+
|
12
|
+
### v0.8.0 (2021-10-03)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210927
|
15
|
+
|
16
|
+
### v0.7.0 (2021-06-29)
|
17
|
+
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.6.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Regenerated using generator version 0.3.0
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Domains service in particular.)
|
67
67
|
|
@@ -113,7 +113,7 @@ module Google
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
-
# Associates `members
|
116
|
+
# Associates `members`, or principals, with a `role`.
|
117
117
|
class Binding
|
118
118
|
include Google::Apis::Core::Hashable
|
119
119
|
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
# @return [Google::Apis::DomainsV1alpha2::Expr]
|
137
137
|
attr_accessor :condition
|
138
138
|
|
139
|
-
# Specifies the
|
139
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
140
140
|
# members` can have the following values: * `allUsers`: A special identifier
|
141
141
|
# that represents anyone who is on the internet; with or without a Google
|
142
142
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -166,8 +166,8 @@ module Google
|
|
166
166
|
# @return [Array<String>]
|
167
167
|
attr_accessor :members
|
168
168
|
|
169
|
-
# Role that is assigned to `members
|
170
|
-
#
|
169
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
170
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
171
171
|
# Corresponds to the JSON property `role`
|
172
172
|
# @return [String]
|
173
173
|
attr_accessor :role
|
@@ -928,31 +928,31 @@ module Google
|
|
928
928
|
|
929
929
|
# An Identity and Access Management (IAM) policy, which specifies access
|
930
930
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
931
|
-
# A `binding` binds one or more `members
|
932
|
-
# user accounts, service accounts, Google groups, and domains (
|
933
|
-
# A `role` is a named list of permissions; each `role` can be
|
934
|
-
# role or a user-created custom role. For some types of Google
|
935
|
-
# a `binding` can also specify a `condition`, which is a
|
936
|
-
# allows access to a resource only if the expression
|
937
|
-
# condition can add constraints based on attributes of
|
938
|
-
# or both. To learn which resources support
|
939
|
-
# see the [IAM documentation](https://cloud.
|
940
|
-
# resource-policies). **JSON example:** ` "
|
941
|
-
# resourcemanager.organizationAdmin", "members": [
|
942
|
-
# group:admins@example.com", "domain:google.com", "
|
943
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
944
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
945
|
-
# title": "expirable access", "description": "Does not grant
|
946
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
947
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
948
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
949
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
950
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
951
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
952
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
953
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
954
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
955
|
-
# google.com/iam/docs/).
|
931
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
932
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
933
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
934
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
935
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
936
|
+
# logical expression that allows access to a resource only if the expression
|
937
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
938
|
+
# the request, the resource, or both. To learn which resources support
|
939
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
940
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
941
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
942
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
943
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
944
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
945
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
946
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
947
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
948
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
949
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
950
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
951
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
952
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
953
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
954
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
955
|
+
# cloud.google.com/iam/docs/).
|
956
956
|
class Policy
|
957
957
|
include Google::Apis::Core::Hashable
|
958
958
|
|
@@ -961,9 +961,14 @@ module Google
|
|
961
961
|
# @return [Array<Google::Apis::DomainsV1alpha2::AuditConfig>]
|
962
962
|
attr_accessor :audit_configs
|
963
963
|
|
964
|
-
# Associates a list of `members
|
965
|
-
# condition` that determines how and when the `bindings` are applied.
|
966
|
-
# the `bindings` must contain at least one
|
964
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
965
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
966
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
967
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
968
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
969
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
970
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
971
|
+
# principals to the `bindings` in the `Policy`.
|
967
972
|
# Corresponds to the JSON property `bindings`
|
968
973
|
# @return [Array<Google::Apis::DomainsV1alpha2::Binding>]
|
969
974
|
attr_accessor :bindings
|
@@ -1166,11 +1171,17 @@ module Google
|
|
1166
1171
|
attr_accessor :domain_notices
|
1167
1172
|
|
1168
1173
|
# The `Registration` resource facilitates managing and configuring domain name
|
1169
|
-
# registrations.
|
1170
|
-
#
|
1171
|
-
#
|
1172
|
-
#
|
1173
|
-
#
|
1174
|
+
# registrations. There are several ways to create a new `Registration` resource:
|
1175
|
+
# To create a new `Registration` resource, find a suitable domain name by
|
1176
|
+
# calling the `SearchDomains` method with a query to see available domain name
|
1177
|
+
# options. After choosing a name, call `RetrieveRegisterParameters` to ensure
|
1178
|
+
# availability and obtain information like pricing, which is needed to build a
|
1179
|
+
# call to `RegisterDomain`. Another way to create a new `Registration` is to
|
1180
|
+
# transfer an existing domain from another registrar. First, go to the current
|
1181
|
+
# registrar to unlock the domain for transfer and retrieve the domain's transfer
|
1182
|
+
# authorization code. Then call `RetrieveTransferParameters` to confirm that the
|
1183
|
+
# domain is unlocked and to get values needed to build a call to `TransferDomain`
|
1184
|
+
# .
|
1174
1185
|
# Corresponds to the JSON property `registration`
|
1175
1186
|
# @return [Google::Apis::DomainsV1alpha2::Registration]
|
1176
1187
|
attr_accessor :registration
|
@@ -1248,11 +1259,17 @@ module Google
|
|
1248
1259
|
end
|
1249
1260
|
|
1250
1261
|
# The `Registration` resource facilitates managing and configuring domain name
|
1251
|
-
# registrations.
|
1252
|
-
#
|
1253
|
-
#
|
1254
|
-
#
|
1255
|
-
#
|
1262
|
+
# registrations. There are several ways to create a new `Registration` resource:
|
1263
|
+
# To create a new `Registration` resource, find a suitable domain name by
|
1264
|
+
# calling the `SearchDomains` method with a query to see available domain name
|
1265
|
+
# options. After choosing a name, call `RetrieveRegisterParameters` to ensure
|
1266
|
+
# availability and obtain information like pricing, which is needed to build a
|
1267
|
+
# call to `RegisterDomain`. Another way to create a new `Registration` is to
|
1268
|
+
# transfer an existing domain from another registrar. First, go to the current
|
1269
|
+
# registrar to unlock the domain for transfer and retrieve the domain's transfer
|
1270
|
+
# authorization code. Then call `RetrieveTransferParameters` to confirm that the
|
1271
|
+
# domain is unlocked and to get values needed to build a call to `TransferDomain`
|
1272
|
+
# .
|
1256
1273
|
class Registration
|
1257
1274
|
include Google::Apis::Core::Hashable
|
1258
1275
|
|
@@ -1379,6 +1396,25 @@ module Google
|
|
1379
1396
|
end
|
1380
1397
|
end
|
1381
1398
|
|
1399
|
+
# Response for the `RetrieveTransferParameters` method.
|
1400
|
+
class RetrieveTransferParametersResponse
|
1401
|
+
include Google::Apis::Core::Hashable
|
1402
|
+
|
1403
|
+
# Parameters required to transfer a domain from another registrar.
|
1404
|
+
# Corresponds to the JSON property `transferParameters`
|
1405
|
+
# @return [Google::Apis::DomainsV1alpha2::TransferParameters]
|
1406
|
+
attr_accessor :transfer_parameters
|
1407
|
+
|
1408
|
+
def initialize(**args)
|
1409
|
+
update!(**args)
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
# Update properties of this object
|
1413
|
+
def update!(**args)
|
1414
|
+
@transfer_parameters = args[:transfer_parameters] if args.key?(:transfer_parameters)
|
1415
|
+
end
|
1416
|
+
end
|
1417
|
+
|
1382
1418
|
# Response for the `SearchDomains` method.
|
1383
1419
|
class SearchDomainsResponse
|
1384
1420
|
include Google::Apis::Core::Hashable
|
@@ -1404,31 +1440,31 @@ module Google
|
|
1404
1440
|
|
1405
1441
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1406
1442
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1407
|
-
# A `binding` binds one or more `members
|
1408
|
-
# user accounts, service accounts, Google groups, and domains (
|
1409
|
-
# A `role` is a named list of permissions; each `role` can be
|
1410
|
-
# role or a user-created custom role. For some types of Google
|
1411
|
-
# a `binding` can also specify a `condition`, which is a
|
1412
|
-
# allows access to a resource only if the expression
|
1413
|
-
# condition can add constraints based on attributes of
|
1414
|
-
# or both. To learn which resources support
|
1415
|
-
# see the [IAM documentation](https://cloud.
|
1416
|
-
# resource-policies). **JSON example:** ` "
|
1417
|
-
# resourcemanager.organizationAdmin", "members": [
|
1418
|
-
# group:admins@example.com", "domain:google.com", "
|
1419
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1420
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1421
|
-
# title": "expirable access", "description": "Does not grant
|
1422
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1423
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1424
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1425
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1426
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1427
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1428
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1429
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1430
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1431
|
-
# google.com/iam/docs/).
|
1443
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1444
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1445
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1446
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1447
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1448
|
+
# logical expression that allows access to a resource only if the expression
|
1449
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1450
|
+
# the request, the resource, or both. To learn which resources support
|
1451
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1452
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1453
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1454
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1455
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1456
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1457
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1458
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1459
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1460
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1461
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1462
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1463
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1464
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1465
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1466
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1467
|
+
# cloud.google.com/iam/docs/).
|
1432
1468
|
# Corresponds to the JSON property `policy`
|
1433
1469
|
# @return [Google::Apis::DomainsV1alpha2::Policy]
|
1434
1470
|
attr_accessor :policy
|
@@ -1529,6 +1565,113 @@ module Google
|
|
1529
1565
|
@permissions = args[:permissions] if args.key?(:permissions)
|
1530
1566
|
end
|
1531
1567
|
end
|
1568
|
+
|
1569
|
+
# Request for the `TransferDomain` method.
|
1570
|
+
class TransferDomainRequest
|
1571
|
+
include Google::Apis::Core::Hashable
|
1572
|
+
|
1573
|
+
# Defines an authorization code.
|
1574
|
+
# Corresponds to the JSON property `authorizationCode`
|
1575
|
+
# @return [Google::Apis::DomainsV1alpha2::AuthorizationCode]
|
1576
|
+
attr_accessor :authorization_code
|
1577
|
+
|
1578
|
+
# The list of contact notices that you acknowledge. The notices needed here
|
1579
|
+
# depend on the values specified in `registration.contact_settings`.
|
1580
|
+
# Corresponds to the JSON property `contactNotices`
|
1581
|
+
# @return [Array<String>]
|
1582
|
+
attr_accessor :contact_notices
|
1583
|
+
|
1584
|
+
# The `Registration` resource facilitates managing and configuring domain name
|
1585
|
+
# registrations. There are several ways to create a new `Registration` resource:
|
1586
|
+
# To create a new `Registration` resource, find a suitable domain name by
|
1587
|
+
# calling the `SearchDomains` method with a query to see available domain name
|
1588
|
+
# options. After choosing a name, call `RetrieveRegisterParameters` to ensure
|
1589
|
+
# availability and obtain information like pricing, which is needed to build a
|
1590
|
+
# call to `RegisterDomain`. Another way to create a new `Registration` is to
|
1591
|
+
# transfer an existing domain from another registrar. First, go to the current
|
1592
|
+
# registrar to unlock the domain for transfer and retrieve the domain's transfer
|
1593
|
+
# authorization code. Then call `RetrieveTransferParameters` to confirm that the
|
1594
|
+
# domain is unlocked and to get values needed to build a call to `TransferDomain`
|
1595
|
+
# .
|
1596
|
+
# Corresponds to the JSON property `registration`
|
1597
|
+
# @return [Google::Apis::DomainsV1alpha2::Registration]
|
1598
|
+
attr_accessor :registration
|
1599
|
+
|
1600
|
+
# Validate the request without actually transferring the domain.
|
1601
|
+
# Corresponds to the JSON property `validateOnly`
|
1602
|
+
# @return [Boolean]
|
1603
|
+
attr_accessor :validate_only
|
1604
|
+
alias_method :validate_only?, :validate_only
|
1605
|
+
|
1606
|
+
# Represents an amount of money with its currency type.
|
1607
|
+
# Corresponds to the JSON property `yearlyPrice`
|
1608
|
+
# @return [Google::Apis::DomainsV1alpha2::Money]
|
1609
|
+
attr_accessor :yearly_price
|
1610
|
+
|
1611
|
+
def initialize(**args)
|
1612
|
+
update!(**args)
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
# Update properties of this object
|
1616
|
+
def update!(**args)
|
1617
|
+
@authorization_code = args[:authorization_code] if args.key?(:authorization_code)
|
1618
|
+
@contact_notices = args[:contact_notices] if args.key?(:contact_notices)
|
1619
|
+
@registration = args[:registration] if args.key?(:registration)
|
1620
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
1621
|
+
@yearly_price = args[:yearly_price] if args.key?(:yearly_price)
|
1622
|
+
end
|
1623
|
+
end
|
1624
|
+
|
1625
|
+
# Parameters required to transfer a domain from another registrar.
|
1626
|
+
class TransferParameters
|
1627
|
+
include Google::Apis::Core::Hashable
|
1628
|
+
|
1629
|
+
# The registrar that currently manages the domain.
|
1630
|
+
# Corresponds to the JSON property `currentRegistrar`
|
1631
|
+
# @return [String]
|
1632
|
+
attr_accessor :current_registrar
|
1633
|
+
|
1634
|
+
# The domain name. Unicode domain names are expressed in Punycode format.
|
1635
|
+
# Corresponds to the JSON property `domainName`
|
1636
|
+
# @return [String]
|
1637
|
+
attr_accessor :domain_name
|
1638
|
+
|
1639
|
+
# The name servers that currently store the configuration of the domain.
|
1640
|
+
# Corresponds to the JSON property `nameServers`
|
1641
|
+
# @return [Array<String>]
|
1642
|
+
attr_accessor :name_servers
|
1643
|
+
|
1644
|
+
# Contact privacy options that the domain supports.
|
1645
|
+
# Corresponds to the JSON property `supportedPrivacy`
|
1646
|
+
# @return [Array<String>]
|
1647
|
+
attr_accessor :supported_privacy
|
1648
|
+
|
1649
|
+
# Indicates whether the domain is protected by a transfer lock. For a transfer
|
1650
|
+
# to succeed, this must show `UNLOCKED`. To unlock a domain, go to its current
|
1651
|
+
# registrar.
|
1652
|
+
# Corresponds to the JSON property `transferLockState`
|
1653
|
+
# @return [String]
|
1654
|
+
attr_accessor :transfer_lock_state
|
1655
|
+
|
1656
|
+
# Represents an amount of money with its currency type.
|
1657
|
+
# Corresponds to the JSON property `yearlyPrice`
|
1658
|
+
# @return [Google::Apis::DomainsV1alpha2::Money]
|
1659
|
+
attr_accessor :yearly_price
|
1660
|
+
|
1661
|
+
def initialize(**args)
|
1662
|
+
update!(**args)
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
# Update properties of this object
|
1666
|
+
def update!(**args)
|
1667
|
+
@current_registrar = args[:current_registrar] if args.key?(:current_registrar)
|
1668
|
+
@domain_name = args[:domain_name] if args.key?(:domain_name)
|
1669
|
+
@name_servers = args[:name_servers] if args.key?(:name_servers)
|
1670
|
+
@supported_privacy = args[:supported_privacy] if args.key?(:supported_privacy)
|
1671
|
+
@transfer_lock_state = args[:transfer_lock_state] if args.key?(:transfer_lock_state)
|
1672
|
+
@yearly_price = args[:yearly_price] if args.key?(:yearly_price)
|
1673
|
+
end
|
1674
|
+
end
|
1532
1675
|
end
|
1533
1676
|
end
|
1534
1677
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DomainsV1alpha2
|
18
18
|
# Version of the google-apis-domains_v1alpha2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211019"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -208,6 +208,12 @@ module Google
|
|
208
208
|
include Google::Apis::Core::JsonObjectSupport
|
209
209
|
end
|
210
210
|
|
211
|
+
class RetrieveTransferParametersResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
211
217
|
class SearchDomainsResponse
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
219
|
|
@@ -238,6 +244,18 @@ module Google
|
|
238
244
|
include Google::Apis::Core::JsonObjectSupport
|
239
245
|
end
|
240
246
|
|
247
|
+
class TransferDomainRequest
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class TransferParameters
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
241
259
|
class AuditConfig
|
242
260
|
# @private
|
243
261
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -561,6 +579,14 @@ module Google
|
|
561
579
|
end
|
562
580
|
end
|
563
581
|
|
582
|
+
class RetrieveTransferParametersResponse
|
583
|
+
# @private
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
585
|
+
property :transfer_parameters, as: 'transferParameters', class: Google::Apis::DomainsV1alpha2::TransferParameters, decorator: Google::Apis::DomainsV1alpha2::TransferParameters::Representation
|
586
|
+
|
587
|
+
end
|
588
|
+
end
|
589
|
+
|
564
590
|
class SearchDomainsResponse
|
565
591
|
# @private
|
566
592
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -600,6 +626,33 @@ module Google
|
|
600
626
|
collection :permissions, as: 'permissions'
|
601
627
|
end
|
602
628
|
end
|
629
|
+
|
630
|
+
class TransferDomainRequest
|
631
|
+
# @private
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
633
|
+
property :authorization_code, as: 'authorizationCode', class: Google::Apis::DomainsV1alpha2::AuthorizationCode, decorator: Google::Apis::DomainsV1alpha2::AuthorizationCode::Representation
|
634
|
+
|
635
|
+
collection :contact_notices, as: 'contactNotices'
|
636
|
+
property :registration, as: 'registration', class: Google::Apis::DomainsV1alpha2::Registration, decorator: Google::Apis::DomainsV1alpha2::Registration::Representation
|
637
|
+
|
638
|
+
property :validate_only, as: 'validateOnly'
|
639
|
+
property :yearly_price, as: 'yearlyPrice', class: Google::Apis::DomainsV1alpha2::Money, decorator: Google::Apis::DomainsV1alpha2::Money::Representation
|
640
|
+
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
class TransferParameters
|
645
|
+
# @private
|
646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
647
|
+
property :current_registrar, as: 'currentRegistrar'
|
648
|
+
property :domain_name, as: 'domainName'
|
649
|
+
collection :name_servers, as: 'nameServers'
|
650
|
+
collection :supported_privacy, as: 'supportedPrivacy'
|
651
|
+
property :transfer_lock_state, as: 'transferLockState'
|
652
|
+
property :yearly_price, as: 'yearlyPrice', class: Google::Apis::DomainsV1alpha2::Money, decorator: Google::Apis::DomainsV1alpha2::Money::Representation
|
653
|
+
|
654
|
+
end
|
655
|
+
end
|
603
656
|
end
|
604
657
|
end
|
605
658
|
end
|
@@ -302,9 +302,16 @@ module Google
|
|
302
302
|
execute_or_queue_command(command, &block)
|
303
303
|
end
|
304
304
|
|
305
|
-
# Deletes a `Registration` resource.
|
306
|
-
#
|
307
|
-
# past * `state` is `REGISTRATION_FAILED`
|
305
|
+
# Deletes a `Registration` resource. For `Registration` resources using usage
|
306
|
+
# billing, this method works if: * `state` is `EXPORTED` with `expire_time` in
|
307
|
+
# the past * `state` is `REGISTRATION_FAILED` * `state` is `TRANSFER_FAILED`
|
308
|
+
# This method works on any `Registration` resource using subscription billing,
|
309
|
+
# provided that the resource was created at least 1 day in the past. When an
|
310
|
+
# active domain is successfully deleted, you can continue to use the domain in [
|
311
|
+
# Google Domains](https://domains.google/) until it expires. The calling user
|
312
|
+
# becomes the domain's sole owner in Google Domains, and permissions for the
|
313
|
+
# domain are subsequently managed there. The domain will not renew automatically
|
314
|
+
# unless the new owner sets up billing in Google Domains.
|
308
315
|
# @param [String] name
|
309
316
|
# Required. The name of the `Registration` to delete, in the format `projects/*/
|
310
317
|
# locations/*/registrations/*`.
|
@@ -335,15 +342,12 @@ module Google
|
|
335
342
|
execute_or_queue_command(command, &block)
|
336
343
|
end
|
337
344
|
|
338
|
-
# Exports a `Registration` that
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
# managed in Google Domains. * Without further action, the domain does not renew
|
345
|
-
# automatically. The new owner can set up billing in Google Domains to renew the
|
346
|
-
# domain if needed.
|
345
|
+
# Exports a `Registration` resource, such that it is no longer managed by Cloud
|
346
|
+
# Domains. When an active domain is successfully exported, you can continue to
|
347
|
+
# use the domain in [Google Domains](https://domains.google/) until it expires.
|
348
|
+
# The calling user becomes the domain's sole owner in Google Domains, and
|
349
|
+
# permissions for the domain are subsequently managed there. The domain will not
|
350
|
+
# renew automatically unless the new owner sets up billing in Google Domains.
|
347
351
|
# @param [String] name
|
348
352
|
# Required. The name of the `Registration` to export, in the format `projects/*/
|
349
353
|
# locations/*/registrations/*`.
|
@@ -689,6 +693,42 @@ module Google
|
|
689
693
|
execute_or_queue_command(command, &block)
|
690
694
|
end
|
691
695
|
|
696
|
+
# Gets parameters needed to transfer a domain name from another registrar to
|
697
|
+
# Cloud Domains. For domains managed by Google Domains, transferring to Cloud
|
698
|
+
# Domains is not yet supported. Use the returned values to call `TransferDomain`.
|
699
|
+
# @param [String] location
|
700
|
+
# Required. The location. Must be in the format `projects/*/locations/*`.
|
701
|
+
# @param [String] domain_name
|
702
|
+
# Required. The domain name. Unicode domain names must be expressed in Punycode
|
703
|
+
# format.
|
704
|
+
# @param [String] fields
|
705
|
+
# Selector specifying which fields to include in a partial response.
|
706
|
+
# @param [String] quota_user
|
707
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
708
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
709
|
+
# @param [Google::Apis::RequestOptions] options
|
710
|
+
# Request-specific options
|
711
|
+
#
|
712
|
+
# @yield [result, err] Result & error if block supplied
|
713
|
+
# @yieldparam result [Google::Apis::DomainsV1alpha2::RetrieveTransferParametersResponse] parsed result object
|
714
|
+
# @yieldparam err [StandardError] error object if request failed
|
715
|
+
#
|
716
|
+
# @return [Google::Apis::DomainsV1alpha2::RetrieveTransferParametersResponse]
|
717
|
+
#
|
718
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
719
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
720
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
721
|
+
def retrieve_project_location_registration_transfer_parameters(location, domain_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
722
|
+
command = make_simple_command(:get, 'v1alpha2/{+location}/registrations:retrieveTransferParameters', options)
|
723
|
+
command.response_representation = Google::Apis::DomainsV1alpha2::RetrieveTransferParametersResponse::Representation
|
724
|
+
command.response_class = Google::Apis::DomainsV1alpha2::RetrieveTransferParametersResponse
|
725
|
+
command.params['location'] = location unless location.nil?
|
726
|
+
command.query['domainName'] = domain_name unless domain_name.nil?
|
727
|
+
command.query['fields'] = fields unless fields.nil?
|
728
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
729
|
+
execute_or_queue_command(command, &block)
|
730
|
+
end
|
731
|
+
|
692
732
|
# Searches for available domain names similar to the provided query.
|
693
733
|
# Availability results from this method are approximate; call `
|
694
734
|
# RetrieveRegisterParameters` on a domain before registering to confirm
|
@@ -798,6 +838,54 @@ module Google
|
|
798
838
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
799
839
|
execute_or_queue_command(command, &block)
|
800
840
|
end
|
841
|
+
|
842
|
+
# Transfers a domain name from another registrar to Cloud Domains. For domains
|
843
|
+
# managed by Google Domains, transferring to Cloud Domains is not yet supported.
|
844
|
+
# Before calling this method, go to the domain's current registrar to unlock the
|
845
|
+
# domain for transfer and retrieve the domain's transfer authorization code.
|
846
|
+
# Then call `RetrieveTransferParameters` to confirm that the domain is unlocked
|
847
|
+
# and to get values needed to build a call to this method. A successful call
|
848
|
+
# creates a `Registration` resource in state `TRANSFER_PENDING`. It can take
|
849
|
+
# several days to complete the transfer process. The registrant can often speed
|
850
|
+
# up this process by approving the transfer through the current registrar,
|
851
|
+
# either by clicking a link in an email from the registrar or by visiting the
|
852
|
+
# registrar's website. A few minutes after transfer approval, the resource
|
853
|
+
# transitions to state `ACTIVE`, indicating that the transfer was successful. If
|
854
|
+
# the transfer is rejected or the request expires without being approved, the
|
855
|
+
# resource can end up in state `TRANSFER_FAILED`. If transfer fails, you can
|
856
|
+
# safely delete the resource and retry the transfer.
|
857
|
+
# @param [String] parent
|
858
|
+
# Required. The parent resource of the `Registration`. Must be in the format `
|
859
|
+
# projects/*/locations/*`.
|
860
|
+
# @param [Google::Apis::DomainsV1alpha2::TransferDomainRequest] transfer_domain_request_object
|
861
|
+
# @param [String] fields
|
862
|
+
# Selector specifying which fields to include in a partial response.
|
863
|
+
# @param [String] quota_user
|
864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
867
|
+
# Request-specific options
|
868
|
+
#
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
870
|
+
# @yieldparam result [Google::Apis::DomainsV1alpha2::Operation] parsed result object
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
872
|
+
#
|
873
|
+
# @return [Google::Apis::DomainsV1alpha2::Operation]
|
874
|
+
#
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
+
def transfer_registration_domain(parent, transfer_domain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
879
|
+
command = make_simple_command(:post, 'v1alpha2/{+parent}/registrations:transfer', options)
|
880
|
+
command.request_representation = Google::Apis::DomainsV1alpha2::TransferDomainRequest::Representation
|
881
|
+
command.request_object = transfer_domain_request_object
|
882
|
+
command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation
|
883
|
+
command.response_class = Google::Apis::DomainsV1alpha2::Operation
|
884
|
+
command.params['parent'] = parent unless parent.nil?
|
885
|
+
command.query['fields'] = fields unless fields.nil?
|
886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
|
+
execute_or_queue_command(command, &block)
|
888
|
+
end
|
801
889
|
|
802
890
|
protected
|
803
891
|
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1alpha2'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-domains_v1alpha2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-domains_v1alpha2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-domains_v1alpha2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-domains_v1alpha2/v0.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-domains_v1alpha2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|