google-cloud-domains-v1 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +151 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/domains/v1/domains/client.rb +1952 -0
- data/lib/google/cloud/domains/v1/domains/credentials.rb +51 -0
- data/lib/google/cloud/domains/v1/domains/operations.rb +767 -0
- data/lib/google/cloud/domains/v1/domains/paths.rb +69 -0
- data/lib/google/cloud/domains/v1/domains.rb +50 -0
- data/lib/google/cloud/domains/v1/domains_pb.rb +315 -0
- data/lib/google/cloud/domains/v1/domains_services_pb.rb +154 -0
- data/lib/google/cloud/domains/v1/version.rb +28 -0
- data/lib/google/cloud/domains/v1.rb +40 -0
- data/lib/google-cloud-domains-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/domains/v1/domains.rb +918 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/money.rb +43 -0
- data/proto_docs/google/type/postal_address.rb +135 -0
- metadata +218 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Domains
|
23
|
+
module V1
|
24
|
+
module Domains
|
25
|
+
# Path helper methods for the Domains API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Location resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def location_path project:, location:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/locations/#{location}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified Registration resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `projects/{project}/locations/{location}/registrations/{registration}`
|
50
|
+
#
|
51
|
+
# @param project [String]
|
52
|
+
# @param location [String]
|
53
|
+
# @param registration [String]
|
54
|
+
#
|
55
|
+
# @return [::String]
|
56
|
+
def registration_path project:, location:, registration:
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}/registrations/#{registration}"
|
61
|
+
end
|
62
|
+
|
63
|
+
extend self
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/domains/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/domains/v1/domains/credentials"
|
26
|
+
require "google/cloud/domains/v1/domains/paths"
|
27
|
+
require "google/cloud/domains/v1/domains/operations"
|
28
|
+
require "google/cloud/domains/v1/domains/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Domains
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The Cloud Domains API enables management and configuration of domain names.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/domains/v1/domains"
|
40
|
+
# client = ::Google::Cloud::Domains::V1::Domains::Client.new
|
41
|
+
#
|
42
|
+
module Domains
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "domains", "helpers.rb"
|
50
|
+
require "google/cloud/domains/v1/domains/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,315 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/domains/v1/domains.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/client_pb'
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/longrunning/operations_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/type/money_pb'
|
12
|
+
require 'google/type/postal_address_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_file("google/cloud/domains/v1/domains.proto", :syntax => :proto3) do
|
17
|
+
add_message "google.cloud.domains.v1.Registration" do
|
18
|
+
optional :name, :string, 1
|
19
|
+
optional :domain_name, :string, 2
|
20
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
21
|
+
optional :expire_time, :message, 6, "google.protobuf.Timestamp"
|
22
|
+
optional :state, :enum, 7, "google.cloud.domains.v1.Registration.State"
|
23
|
+
repeated :issues, :enum, 8, "google.cloud.domains.v1.Registration.Issue"
|
24
|
+
map :labels, :string, :string, 9
|
25
|
+
optional :management_settings, :message, 10, "google.cloud.domains.v1.ManagementSettings"
|
26
|
+
optional :dns_settings, :message, 11, "google.cloud.domains.v1.DnsSettings"
|
27
|
+
optional :contact_settings, :message, 12, "google.cloud.domains.v1.ContactSettings"
|
28
|
+
optional :pending_contact_settings, :message, 13, "google.cloud.domains.v1.ContactSettings"
|
29
|
+
repeated :supported_privacy, :enum, 14, "google.cloud.domains.v1.ContactPrivacy"
|
30
|
+
end
|
31
|
+
add_enum "google.cloud.domains.v1.Registration.State" do
|
32
|
+
value :STATE_UNSPECIFIED, 0
|
33
|
+
value :REGISTRATION_PENDING, 1
|
34
|
+
value :REGISTRATION_FAILED, 2
|
35
|
+
value :TRANSFER_PENDING, 3
|
36
|
+
value :TRANSFER_FAILED, 4
|
37
|
+
value :ACTIVE, 6
|
38
|
+
value :SUSPENDED, 7
|
39
|
+
value :EXPORTED, 8
|
40
|
+
end
|
41
|
+
add_enum "google.cloud.domains.v1.Registration.Issue" do
|
42
|
+
value :ISSUE_UNSPECIFIED, 0
|
43
|
+
value :CONTACT_SUPPORT, 1
|
44
|
+
value :UNVERIFIED_EMAIL, 2
|
45
|
+
end
|
46
|
+
add_message "google.cloud.domains.v1.ManagementSettings" do
|
47
|
+
optional :renewal_method, :enum, 3, "google.cloud.domains.v1.ManagementSettings.RenewalMethod"
|
48
|
+
optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1.TransferLockState"
|
49
|
+
end
|
50
|
+
add_enum "google.cloud.domains.v1.ManagementSettings.RenewalMethod" do
|
51
|
+
value :RENEWAL_METHOD_UNSPECIFIED, 0
|
52
|
+
value :AUTOMATIC_RENEWAL, 1
|
53
|
+
value :MANUAL_RENEWAL, 2
|
54
|
+
end
|
55
|
+
add_message "google.cloud.domains.v1.DnsSettings" do
|
56
|
+
repeated :glue_records, :message, 4, "google.cloud.domains.v1.DnsSettings.GlueRecord"
|
57
|
+
oneof :dns_provider do
|
58
|
+
optional :custom_dns, :message, 1, "google.cloud.domains.v1.DnsSettings.CustomDns"
|
59
|
+
optional :google_domains_dns, :message, 2, "google.cloud.domains.v1.DnsSettings.GoogleDomainsDns"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
add_message "google.cloud.domains.v1.DnsSettings.CustomDns" do
|
63
|
+
repeated :name_servers, :string, 1
|
64
|
+
repeated :ds_records, :message, 2, "google.cloud.domains.v1.DnsSettings.DsRecord"
|
65
|
+
end
|
66
|
+
add_message "google.cloud.domains.v1.DnsSettings.GoogleDomainsDns" do
|
67
|
+
repeated :name_servers, :string, 1
|
68
|
+
optional :ds_state, :enum, 2, "google.cloud.domains.v1.DnsSettings.DsState"
|
69
|
+
repeated :ds_records, :message, 3, "google.cloud.domains.v1.DnsSettings.DsRecord"
|
70
|
+
end
|
71
|
+
add_message "google.cloud.domains.v1.DnsSettings.DsRecord" do
|
72
|
+
optional :key_tag, :int32, 1
|
73
|
+
optional :algorithm, :enum, 2, "google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm"
|
74
|
+
optional :digest_type, :enum, 3, "google.cloud.domains.v1.DnsSettings.DsRecord.DigestType"
|
75
|
+
optional :digest, :string, 4
|
76
|
+
end
|
77
|
+
add_enum "google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm" do
|
78
|
+
value :ALGORITHM_UNSPECIFIED, 0
|
79
|
+
value :RSAMD5, 1
|
80
|
+
value :DH, 2
|
81
|
+
value :DSA, 3
|
82
|
+
value :ECC, 4
|
83
|
+
value :RSASHA1, 5
|
84
|
+
value :DSANSEC3SHA1, 6
|
85
|
+
value :RSASHA1NSEC3SHA1, 7
|
86
|
+
value :RSASHA256, 8
|
87
|
+
value :RSASHA512, 10
|
88
|
+
value :ECCGOST, 12
|
89
|
+
value :ECDSAP256SHA256, 13
|
90
|
+
value :ECDSAP384SHA384, 14
|
91
|
+
value :ED25519, 15
|
92
|
+
value :ED448, 16
|
93
|
+
value :INDIRECT, 252
|
94
|
+
value :PRIVATEDNS, 253
|
95
|
+
value :PRIVATEOID, 254
|
96
|
+
end
|
97
|
+
add_enum "google.cloud.domains.v1.DnsSettings.DsRecord.DigestType" do
|
98
|
+
value :DIGEST_TYPE_UNSPECIFIED, 0
|
99
|
+
value :SHA1, 1
|
100
|
+
value :SHA256, 2
|
101
|
+
value :GOST3411, 3
|
102
|
+
value :SHA384, 4
|
103
|
+
end
|
104
|
+
add_message "google.cloud.domains.v1.DnsSettings.GlueRecord" do
|
105
|
+
optional :host_name, :string, 1
|
106
|
+
repeated :ipv4_addresses, :string, 2
|
107
|
+
repeated :ipv6_addresses, :string, 3
|
108
|
+
end
|
109
|
+
add_enum "google.cloud.domains.v1.DnsSettings.DsState" do
|
110
|
+
value :DS_STATE_UNSPECIFIED, 0
|
111
|
+
value :DS_RECORDS_UNPUBLISHED, 1
|
112
|
+
value :DS_RECORDS_PUBLISHED, 2
|
113
|
+
end
|
114
|
+
add_message "google.cloud.domains.v1.ContactSettings" do
|
115
|
+
optional :privacy, :enum, 1, "google.cloud.domains.v1.ContactPrivacy"
|
116
|
+
optional :registrant_contact, :message, 2, "google.cloud.domains.v1.ContactSettings.Contact"
|
117
|
+
optional :admin_contact, :message, 3, "google.cloud.domains.v1.ContactSettings.Contact"
|
118
|
+
optional :technical_contact, :message, 4, "google.cloud.domains.v1.ContactSettings.Contact"
|
119
|
+
end
|
120
|
+
add_message "google.cloud.domains.v1.ContactSettings.Contact" do
|
121
|
+
optional :postal_address, :message, 1, "google.type.PostalAddress"
|
122
|
+
optional :email, :string, 2
|
123
|
+
optional :phone_number, :string, 3
|
124
|
+
optional :fax_number, :string, 4
|
125
|
+
end
|
126
|
+
add_message "google.cloud.domains.v1.SearchDomainsRequest" do
|
127
|
+
optional :query, :string, 1
|
128
|
+
optional :location, :string, 2
|
129
|
+
end
|
130
|
+
add_message "google.cloud.domains.v1.SearchDomainsResponse" do
|
131
|
+
repeated :register_parameters, :message, 1, "google.cloud.domains.v1.RegisterParameters"
|
132
|
+
end
|
133
|
+
add_message "google.cloud.domains.v1.RetrieveRegisterParametersRequest" do
|
134
|
+
optional :domain_name, :string, 1
|
135
|
+
optional :location, :string, 2
|
136
|
+
end
|
137
|
+
add_message "google.cloud.domains.v1.RetrieveRegisterParametersResponse" do
|
138
|
+
optional :register_parameters, :message, 1, "google.cloud.domains.v1.RegisterParameters"
|
139
|
+
end
|
140
|
+
add_message "google.cloud.domains.v1.RegisterDomainRequest" do
|
141
|
+
optional :parent, :string, 1
|
142
|
+
optional :registration, :message, 2, "google.cloud.domains.v1.Registration"
|
143
|
+
repeated :domain_notices, :enum, 3, "google.cloud.domains.v1.DomainNotice"
|
144
|
+
repeated :contact_notices, :enum, 4, "google.cloud.domains.v1.ContactNotice"
|
145
|
+
optional :yearly_price, :message, 5, "google.type.Money"
|
146
|
+
optional :validate_only, :bool, 6
|
147
|
+
end
|
148
|
+
add_message "google.cloud.domains.v1.RetrieveTransferParametersRequest" do
|
149
|
+
optional :domain_name, :string, 1
|
150
|
+
optional :location, :string, 2
|
151
|
+
end
|
152
|
+
add_message "google.cloud.domains.v1.RetrieveTransferParametersResponse" do
|
153
|
+
optional :transfer_parameters, :message, 1, "google.cloud.domains.v1.TransferParameters"
|
154
|
+
end
|
155
|
+
add_message "google.cloud.domains.v1.TransferDomainRequest" do
|
156
|
+
optional :parent, :string, 1
|
157
|
+
optional :registration, :message, 2, "google.cloud.domains.v1.Registration"
|
158
|
+
repeated :contact_notices, :enum, 3, "google.cloud.domains.v1.ContactNotice"
|
159
|
+
optional :yearly_price, :message, 4, "google.type.Money"
|
160
|
+
optional :authorization_code, :message, 5, "google.cloud.domains.v1.AuthorizationCode"
|
161
|
+
optional :validate_only, :bool, 6
|
162
|
+
end
|
163
|
+
add_message "google.cloud.domains.v1.ListRegistrationsRequest" do
|
164
|
+
optional :parent, :string, 1
|
165
|
+
optional :page_size, :int32, 2
|
166
|
+
optional :page_token, :string, 3
|
167
|
+
optional :filter, :string, 4
|
168
|
+
end
|
169
|
+
add_message "google.cloud.domains.v1.ListRegistrationsResponse" do
|
170
|
+
repeated :registrations, :message, 1, "google.cloud.domains.v1.Registration"
|
171
|
+
optional :next_page_token, :string, 2
|
172
|
+
end
|
173
|
+
add_message "google.cloud.domains.v1.GetRegistrationRequest" do
|
174
|
+
optional :name, :string, 1
|
175
|
+
end
|
176
|
+
add_message "google.cloud.domains.v1.UpdateRegistrationRequest" do
|
177
|
+
optional :registration, :message, 1, "google.cloud.domains.v1.Registration"
|
178
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
179
|
+
end
|
180
|
+
add_message "google.cloud.domains.v1.ConfigureManagementSettingsRequest" do
|
181
|
+
optional :registration, :string, 1
|
182
|
+
optional :management_settings, :message, 2, "google.cloud.domains.v1.ManagementSettings"
|
183
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
184
|
+
end
|
185
|
+
add_message "google.cloud.domains.v1.ConfigureDnsSettingsRequest" do
|
186
|
+
optional :registration, :string, 1
|
187
|
+
optional :dns_settings, :message, 2, "google.cloud.domains.v1.DnsSettings"
|
188
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
189
|
+
optional :validate_only, :bool, 4
|
190
|
+
end
|
191
|
+
add_message "google.cloud.domains.v1.ConfigureContactSettingsRequest" do
|
192
|
+
optional :registration, :string, 1
|
193
|
+
optional :contact_settings, :message, 2, "google.cloud.domains.v1.ContactSettings"
|
194
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
195
|
+
repeated :contact_notices, :enum, 4, "google.cloud.domains.v1.ContactNotice"
|
196
|
+
optional :validate_only, :bool, 5
|
197
|
+
end
|
198
|
+
add_message "google.cloud.domains.v1.ExportRegistrationRequest" do
|
199
|
+
optional :name, :string, 1
|
200
|
+
end
|
201
|
+
add_message "google.cloud.domains.v1.DeleteRegistrationRequest" do
|
202
|
+
optional :name, :string, 1
|
203
|
+
end
|
204
|
+
add_message "google.cloud.domains.v1.RetrieveAuthorizationCodeRequest" do
|
205
|
+
optional :registration, :string, 1
|
206
|
+
end
|
207
|
+
add_message "google.cloud.domains.v1.ResetAuthorizationCodeRequest" do
|
208
|
+
optional :registration, :string, 1
|
209
|
+
end
|
210
|
+
add_message "google.cloud.domains.v1.RegisterParameters" do
|
211
|
+
optional :domain_name, :string, 1
|
212
|
+
optional :availability, :enum, 2, "google.cloud.domains.v1.RegisterParameters.Availability"
|
213
|
+
repeated :supported_privacy, :enum, 3, "google.cloud.domains.v1.ContactPrivacy"
|
214
|
+
repeated :domain_notices, :enum, 4, "google.cloud.domains.v1.DomainNotice"
|
215
|
+
optional :yearly_price, :message, 5, "google.type.Money"
|
216
|
+
end
|
217
|
+
add_enum "google.cloud.domains.v1.RegisterParameters.Availability" do
|
218
|
+
value :AVAILABILITY_UNSPECIFIED, 0
|
219
|
+
value :AVAILABLE, 1
|
220
|
+
value :UNAVAILABLE, 2
|
221
|
+
value :UNSUPPORTED, 3
|
222
|
+
value :UNKNOWN, 4
|
223
|
+
end
|
224
|
+
add_message "google.cloud.domains.v1.TransferParameters" do
|
225
|
+
optional :domain_name, :string, 1
|
226
|
+
optional :current_registrar, :string, 2
|
227
|
+
repeated :name_servers, :string, 3
|
228
|
+
optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1.TransferLockState"
|
229
|
+
repeated :supported_privacy, :enum, 5, "google.cloud.domains.v1.ContactPrivacy"
|
230
|
+
optional :yearly_price, :message, 6, "google.type.Money"
|
231
|
+
end
|
232
|
+
add_message "google.cloud.domains.v1.AuthorizationCode" do
|
233
|
+
optional :code, :string, 1
|
234
|
+
end
|
235
|
+
add_message "google.cloud.domains.v1.OperationMetadata" do
|
236
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
237
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
238
|
+
optional :target, :string, 3
|
239
|
+
optional :verb, :string, 4
|
240
|
+
optional :status_detail, :string, 5
|
241
|
+
optional :api_version, :string, 6
|
242
|
+
end
|
243
|
+
add_enum "google.cloud.domains.v1.ContactPrivacy" do
|
244
|
+
value :CONTACT_PRIVACY_UNSPECIFIED, 0
|
245
|
+
value :PUBLIC_CONTACT_DATA, 1
|
246
|
+
value :PRIVATE_CONTACT_DATA, 2
|
247
|
+
value :REDACTED_CONTACT_DATA, 3
|
248
|
+
end
|
249
|
+
add_enum "google.cloud.domains.v1.DomainNotice" do
|
250
|
+
value :DOMAIN_NOTICE_UNSPECIFIED, 0
|
251
|
+
value :HSTS_PRELOADED, 1
|
252
|
+
end
|
253
|
+
add_enum "google.cloud.domains.v1.ContactNotice" do
|
254
|
+
value :CONTACT_NOTICE_UNSPECIFIED, 0
|
255
|
+
value :PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT, 1
|
256
|
+
end
|
257
|
+
add_enum "google.cloud.domains.v1.TransferLockState" do
|
258
|
+
value :TRANSFER_LOCK_STATE_UNSPECIFIED, 0
|
259
|
+
value :UNLOCKED, 1
|
260
|
+
value :LOCKED, 2
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
module Google
|
266
|
+
module Cloud
|
267
|
+
module Domains
|
268
|
+
module V1
|
269
|
+
Registration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.Registration").msgclass
|
270
|
+
Registration::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.Registration.State").enummodule
|
271
|
+
Registration::Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.Registration.Issue").enummodule
|
272
|
+
ManagementSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ManagementSettings").msgclass
|
273
|
+
ManagementSettings::RenewalMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ManagementSettings.RenewalMethod").enummodule
|
274
|
+
DnsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings").msgclass
|
275
|
+
DnsSettings::CustomDns = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.CustomDns").msgclass
|
276
|
+
DnsSettings::GoogleDomainsDns = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.GoogleDomainsDns").msgclass
|
277
|
+
DnsSettings::DsRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.DsRecord").msgclass
|
278
|
+
DnsSettings::DsRecord::Algorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm").enummodule
|
279
|
+
DnsSettings::DsRecord::DigestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.DsRecord.DigestType").enummodule
|
280
|
+
DnsSettings::GlueRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.GlueRecord").msgclass
|
281
|
+
DnsSettings::DsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DnsSettings.DsState").enummodule
|
282
|
+
ContactSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ContactSettings").msgclass
|
283
|
+
ContactSettings::Contact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ContactSettings.Contact").msgclass
|
284
|
+
SearchDomainsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.SearchDomainsRequest").msgclass
|
285
|
+
SearchDomainsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.SearchDomainsResponse").msgclass
|
286
|
+
RetrieveRegisterParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RetrieveRegisterParametersRequest").msgclass
|
287
|
+
RetrieveRegisterParametersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RetrieveRegisterParametersResponse").msgclass
|
288
|
+
RegisterDomainRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RegisterDomainRequest").msgclass
|
289
|
+
RetrieveTransferParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RetrieveTransferParametersRequest").msgclass
|
290
|
+
RetrieveTransferParametersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RetrieveTransferParametersResponse").msgclass
|
291
|
+
TransferDomainRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.TransferDomainRequest").msgclass
|
292
|
+
ListRegistrationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ListRegistrationsRequest").msgclass
|
293
|
+
ListRegistrationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ListRegistrationsResponse").msgclass
|
294
|
+
GetRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.GetRegistrationRequest").msgclass
|
295
|
+
UpdateRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.UpdateRegistrationRequest").msgclass
|
296
|
+
ConfigureManagementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ConfigureManagementSettingsRequest").msgclass
|
297
|
+
ConfigureDnsSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ConfigureDnsSettingsRequest").msgclass
|
298
|
+
ConfigureContactSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ConfigureContactSettingsRequest").msgclass
|
299
|
+
ExportRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ExportRegistrationRequest").msgclass
|
300
|
+
DeleteRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DeleteRegistrationRequest").msgclass
|
301
|
+
RetrieveAuthorizationCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RetrieveAuthorizationCodeRequest").msgclass
|
302
|
+
ResetAuthorizationCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ResetAuthorizationCodeRequest").msgclass
|
303
|
+
RegisterParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RegisterParameters").msgclass
|
304
|
+
RegisterParameters::Availability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.RegisterParameters.Availability").enummodule
|
305
|
+
TransferParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.TransferParameters").msgclass
|
306
|
+
AuthorizationCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.AuthorizationCode").msgclass
|
307
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.OperationMetadata").msgclass
|
308
|
+
ContactPrivacy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ContactPrivacy").enummodule
|
309
|
+
DomainNotice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.DomainNotice").enummodule
|
310
|
+
ContactNotice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.ContactNotice").enummodule
|
311
|
+
TransferLockState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1.TransferLockState").enummodule
|
312
|
+
end
|
313
|
+
end
|
314
|
+
end
|
315
|
+
end
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/domains/v1/domains.proto for package 'google.cloud.domains.v1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/domains/v1/domains_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Domains
|
25
|
+
module V1
|
26
|
+
module Domains
|
27
|
+
# The Cloud Domains API enables management and configuration of domain names.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.domains.v1.Domains'
|
35
|
+
|
36
|
+
# Searches for available domain names similar to the provided query.
|
37
|
+
#
|
38
|
+
# Availability results from this method are approximate; call
|
39
|
+
# `RetrieveRegisterParameters` on a domain before registering to confirm
|
40
|
+
# availability.
|
41
|
+
rpc :SearchDomains, ::Google::Cloud::Domains::V1::SearchDomainsRequest, ::Google::Cloud::Domains::V1::SearchDomainsResponse
|
42
|
+
# Gets parameters needed to register a new domain name, including price and
|
43
|
+
# up-to-date availability. Use the returned values to call `RegisterDomain`.
|
44
|
+
rpc :RetrieveRegisterParameters, ::Google::Cloud::Domains::V1::RetrieveRegisterParametersRequest, ::Google::Cloud::Domains::V1::RetrieveRegisterParametersResponse
|
45
|
+
# Registers a new domain name and creates a corresponding `Registration`
|
46
|
+
# resource.
|
47
|
+
#
|
48
|
+
# Call `RetrieveRegisterParameters` first to check availability of the domain
|
49
|
+
# name and determine parameters like price that are needed to build a call to
|
50
|
+
# this method.
|
51
|
+
#
|
52
|
+
# A successful call creates a `Registration` resource in state
|
53
|
+
# `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
|
54
|
+
# minutes, indicating that the domain was successfully registered. If the
|
55
|
+
# resource ends up in state `REGISTRATION_FAILED`, it indicates that the
|
56
|
+
# domain was not registered successfully, and you can safely delete the
|
57
|
+
# resource and retry registration.
|
58
|
+
rpc :RegisterDomain, ::Google::Cloud::Domains::V1::RegisterDomainRequest, ::Google::Longrunning::Operation
|
59
|
+
# Gets parameters needed to transfer a domain name from another registrar to
|
60
|
+
# Cloud Domains. For domains managed by Google Domains, transferring to Cloud
|
61
|
+
# Domains is not supported.
|
62
|
+
#
|
63
|
+
#
|
64
|
+
# Use the returned values to call `TransferDomain`.
|
65
|
+
rpc :RetrieveTransferParameters, ::Google::Cloud::Domains::V1::RetrieveTransferParametersRequest, ::Google::Cloud::Domains::V1::RetrieveTransferParametersResponse
|
66
|
+
# Transfers a domain name from another registrar to Cloud Domains. For
|
67
|
+
# domains managed by Google Domains, transferring to Cloud Domains is not
|
68
|
+
# supported.
|
69
|
+
#
|
70
|
+
#
|
71
|
+
# Before calling this method, go to the domain's current registrar to unlock
|
72
|
+
# the domain for transfer and retrieve the domain's transfer authorization
|
73
|
+
# code. Then call `RetrieveTransferParameters` to confirm that the domain is
|
74
|
+
# unlocked and to get values needed to build a call to this method.
|
75
|
+
#
|
76
|
+
# A successful call creates a `Registration` resource in state
|
77
|
+
# `TRANSFER_PENDING`. It can take several days to complete the transfer
|
78
|
+
# process. The registrant can often speed up this process by approving the
|
79
|
+
# transfer through the current registrar, either by clicking a link in an
|
80
|
+
# email from the registrar or by visiting the registrar's website.
|
81
|
+
#
|
82
|
+
# A few minutes after transfer approval, the resource transitions to state
|
83
|
+
# `ACTIVE`, indicating that the transfer was successful. If the transfer is
|
84
|
+
# rejected or the request expires without being approved, the resource can
|
85
|
+
# end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
|
86
|
+
# the resource and retry the transfer.
|
87
|
+
rpc :TransferDomain, ::Google::Cloud::Domains::V1::TransferDomainRequest, ::Google::Longrunning::Operation
|
88
|
+
# Lists the `Registration` resources in a project.
|
89
|
+
rpc :ListRegistrations, ::Google::Cloud::Domains::V1::ListRegistrationsRequest, ::Google::Cloud::Domains::V1::ListRegistrationsResponse
|
90
|
+
# Gets the details of a `Registration` resource.
|
91
|
+
rpc :GetRegistration, ::Google::Cloud::Domains::V1::GetRegistrationRequest, ::Google::Cloud::Domains::V1::Registration
|
92
|
+
# Updates select fields of a `Registration` resource, notably `labels`. To
|
93
|
+
# update other fields, use the appropriate custom update method:
|
94
|
+
#
|
95
|
+
# * To update management settings, see `ConfigureManagementSettings`
|
96
|
+
# * To update DNS configuration, see `ConfigureDnsSettings`
|
97
|
+
# * To update contact information, see `ConfigureContactSettings`
|
98
|
+
rpc :UpdateRegistration, ::Google::Cloud::Domains::V1::UpdateRegistrationRequest, ::Google::Longrunning::Operation
|
99
|
+
# Updates a `Registration`'s management settings.
|
100
|
+
rpc :ConfigureManagementSettings, ::Google::Cloud::Domains::V1::ConfigureManagementSettingsRequest, ::Google::Longrunning::Operation
|
101
|
+
# Updates a `Registration`'s DNS settings.
|
102
|
+
rpc :ConfigureDnsSettings, ::Google::Cloud::Domains::V1::ConfigureDnsSettingsRequest, ::Google::Longrunning::Operation
|
103
|
+
# Updates a `Registration`'s contact settings. Some changes require
|
104
|
+
# confirmation by the domain's registrant contact .
|
105
|
+
rpc :ConfigureContactSettings, ::Google::Cloud::Domains::V1::ConfigureContactSettingsRequest, ::Google::Longrunning::Operation
|
106
|
+
# Exports a `Registration` resource, such that it is no longer managed by
|
107
|
+
# Cloud Domains.
|
108
|
+
#
|
109
|
+
# When an active domain is successfully exported, you can continue to use the
|
110
|
+
# domain in [Google Domains](https://domains.google/) until it expires. The
|
111
|
+
# calling user becomes the domain's sole owner in Google Domains, and
|
112
|
+
# permissions for the domain are subsequently managed there. The domain does
|
113
|
+
# not renew automatically unless the new owner sets up billing in Google
|
114
|
+
# Domains.
|
115
|
+
rpc :ExportRegistration, ::Google::Cloud::Domains::V1::ExportRegistrationRequest, ::Google::Longrunning::Operation
|
116
|
+
# Deletes a `Registration` resource.
|
117
|
+
#
|
118
|
+
# This method works on any `Registration` resource using [Subscription or
|
119
|
+
# Commitment billing](/domains/pricing#billing-models), provided that the
|
120
|
+
# resource was created at least 1 day in the past.
|
121
|
+
#
|
122
|
+
# For `Registration` resources using
|
123
|
+
# [Monthly billing](/domains/pricing#billing-models), this method works if:
|
124
|
+
#
|
125
|
+
# * `state` is `EXPORTED` with `expire_time` in the past
|
126
|
+
# * `state` is `REGISTRATION_FAILED`
|
127
|
+
# * `state` is `TRANSFER_FAILED`
|
128
|
+
#
|
129
|
+
# When an active registration is successfully deleted, you can continue to
|
130
|
+
# use the domain in [Google Domains](https://domains.google/) until it
|
131
|
+
# expires. The calling user becomes the domain's sole owner in Google
|
132
|
+
# Domains, and permissions for the domain are subsequently managed there. The
|
133
|
+
# domain does not renew automatically unless the new owner sets up billing in
|
134
|
+
# Google Domains.
|
135
|
+
rpc :DeleteRegistration, ::Google::Cloud::Domains::V1::DeleteRegistrationRequest, ::Google::Longrunning::Operation
|
136
|
+
# Gets the authorization code of the `Registration` for the purpose of
|
137
|
+
# transferring the domain to another registrar.
|
138
|
+
#
|
139
|
+
# You can call this method only after 60 days have elapsed since the initial
|
140
|
+
# domain registration.
|
141
|
+
rpc :RetrieveAuthorizationCode, ::Google::Cloud::Domains::V1::RetrieveAuthorizationCodeRequest, ::Google::Cloud::Domains::V1::AuthorizationCode
|
142
|
+
# Resets the authorization code of the `Registration` to a new random string.
|
143
|
+
#
|
144
|
+
# You can call this method only after 60 days have elapsed since the initial
|
145
|
+
# domain registration.
|
146
|
+
rpc :ResetAuthorizationCode, ::Google::Cloud::Domains::V1::ResetAuthorizationCodeRequest, ::Google::Cloud::Domains::V1::AuthorizationCode
|
147
|
+
end
|
148
|
+
|
149
|
+
Stub = Service.rpc_stub_class
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Domains
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/domains/v1/domains"
|
20
|
+
require "google/cloud/domains/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Domains
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/domains/v1"
|
31
|
+
# client = ::Google::Cloud::Domains::V1::Domains::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
40
|
+
require "google/cloud/domains/v1/_helpers" if ::File.file? helper_path
|