google-cloud-domains-v1beta1 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.
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 V1beta1
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,281 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/domains/v1beta1/domains.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/longrunning/operations_pb'
11
+ require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ require 'google/type/money_pb'
14
+ require 'google/type/postal_address_pb'
15
+ Google::Protobuf::DescriptorPool.generated_pool.build do
16
+ add_file("google/cloud/domains/v1beta1/domains.proto", :syntax => :proto3) do
17
+ add_message "google.cloud.domains.v1beta1.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.v1beta1.Registration.State"
23
+ repeated :issues, :enum, 8, "google.cloud.domains.v1beta1.Registration.Issue"
24
+ map :labels, :string, :string, 9
25
+ optional :management_settings, :message, 10, "google.cloud.domains.v1beta1.ManagementSettings"
26
+ optional :dns_settings, :message, 11, "google.cloud.domains.v1beta1.DnsSettings"
27
+ optional :contact_settings, :message, 12, "google.cloud.domains.v1beta1.ContactSettings"
28
+ optional :pending_contact_settings, :message, 13, "google.cloud.domains.v1beta1.ContactSettings"
29
+ repeated :supported_privacy, :enum, 14, "google.cloud.domains.v1beta1.ContactPrivacy"
30
+ end
31
+ add_enum "google.cloud.domains.v1beta1.Registration.State" do
32
+ value :STATE_UNSPECIFIED, 0
33
+ value :REGISTRATION_PENDING, 1
34
+ value :REGISTRATION_FAILED, 2
35
+ value :ACTIVE, 6
36
+ value :SUSPENDED, 7
37
+ value :EXPORTED, 8
38
+ end
39
+ add_enum "google.cloud.domains.v1beta1.Registration.Issue" do
40
+ value :ISSUE_UNSPECIFIED, 0
41
+ value :CONTACT_SUPPORT, 1
42
+ value :UNVERIFIED_EMAIL, 2
43
+ end
44
+ add_message "google.cloud.domains.v1beta1.ManagementSettings" do
45
+ optional :renewal_method, :enum, 3, "google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod"
46
+ optional :transfer_lock_state, :enum, 4, "google.cloud.domains.v1beta1.TransferLockState"
47
+ end
48
+ add_enum "google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod" do
49
+ value :RENEWAL_METHOD_UNSPECIFIED, 0
50
+ value :AUTOMATIC_RENEWAL, 1
51
+ value :MANUAL_RENEWAL, 2
52
+ end
53
+ add_message "google.cloud.domains.v1beta1.DnsSettings" do
54
+ repeated :glue_records, :message, 4, "google.cloud.domains.v1beta1.DnsSettings.GlueRecord"
55
+ oneof :dns_provider do
56
+ optional :custom_dns, :message, 1, "google.cloud.domains.v1beta1.DnsSettings.CustomDns"
57
+ optional :google_domains_dns, :message, 2, "google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns"
58
+ end
59
+ end
60
+ add_message "google.cloud.domains.v1beta1.DnsSettings.CustomDns" do
61
+ repeated :name_servers, :string, 1
62
+ repeated :ds_records, :message, 2, "google.cloud.domains.v1beta1.DnsSettings.DsRecord"
63
+ end
64
+ add_message "google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns" do
65
+ repeated :name_servers, :string, 1
66
+ optional :ds_state, :enum, 2, "google.cloud.domains.v1beta1.DnsSettings.DsState"
67
+ repeated :ds_records, :message, 3, "google.cloud.domains.v1beta1.DnsSettings.DsRecord"
68
+ end
69
+ add_message "google.cloud.domains.v1beta1.DnsSettings.DsRecord" do
70
+ optional :key_tag, :int32, 1
71
+ optional :algorithm, :enum, 2, "google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm"
72
+ optional :digest_type, :enum, 3, "google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType"
73
+ optional :digest, :string, 4
74
+ end
75
+ add_enum "google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm" do
76
+ value :ALGORITHM_UNSPECIFIED, 0
77
+ value :DSA, 3
78
+ value :ECC, 4
79
+ value :RSASHA1, 5
80
+ value :DSANSEC3SHA1, 6
81
+ value :RSASHA1NSEC3SHA1, 7
82
+ value :RSASHA256, 8
83
+ value :RSASHA512, 10
84
+ value :ECCGOST, 12
85
+ value :ECDSAP256SHA256, 13
86
+ value :ECDSAP384SHA384, 14
87
+ value :ED25519, 15
88
+ value :ED448, 16
89
+ end
90
+ add_enum "google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType" do
91
+ value :DIGEST_TYPE_UNSPECIFIED, 0
92
+ value :SHA1, 1
93
+ value :SHA256, 2
94
+ value :GOST3411, 3
95
+ value :SHA384, 4
96
+ end
97
+ add_message "google.cloud.domains.v1beta1.DnsSettings.GlueRecord" do
98
+ optional :host_name, :string, 1
99
+ repeated :ipv4_addresses, :string, 2
100
+ repeated :ipv6_addresses, :string, 3
101
+ end
102
+ add_enum "google.cloud.domains.v1beta1.DnsSettings.DsState" do
103
+ value :DS_STATE_UNSPECIFIED, 0
104
+ value :DS_RECORDS_UNPUBLISHED, 1
105
+ value :DS_RECORDS_PUBLISHED, 2
106
+ end
107
+ add_message "google.cloud.domains.v1beta1.ContactSettings" do
108
+ optional :privacy, :enum, 1, "google.cloud.domains.v1beta1.ContactPrivacy"
109
+ optional :registrant_contact, :message, 2, "google.cloud.domains.v1beta1.ContactSettings.Contact"
110
+ optional :admin_contact, :message, 3, "google.cloud.domains.v1beta1.ContactSettings.Contact"
111
+ optional :technical_contact, :message, 4, "google.cloud.domains.v1beta1.ContactSettings.Contact"
112
+ end
113
+ add_message "google.cloud.domains.v1beta1.ContactSettings.Contact" do
114
+ optional :postal_address, :message, 1, "google.type.PostalAddress"
115
+ optional :email, :string, 2
116
+ optional :phone_number, :string, 3
117
+ optional :fax_number, :string, 4
118
+ end
119
+ add_message "google.cloud.domains.v1beta1.SearchDomainsRequest" do
120
+ optional :query, :string, 1
121
+ optional :location, :string, 2
122
+ end
123
+ add_message "google.cloud.domains.v1beta1.SearchDomainsResponse" do
124
+ repeated :register_parameters, :message, 1, "google.cloud.domains.v1beta1.RegisterParameters"
125
+ end
126
+ add_message "google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest" do
127
+ optional :domain_name, :string, 1
128
+ optional :location, :string, 2
129
+ end
130
+ add_message "google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse" do
131
+ optional :register_parameters, :message, 1, "google.cloud.domains.v1beta1.RegisterParameters"
132
+ end
133
+ add_message "google.cloud.domains.v1beta1.RegisterDomainRequest" do
134
+ optional :parent, :string, 1
135
+ optional :registration, :message, 2, "google.cloud.domains.v1beta1.Registration"
136
+ repeated :domain_notices, :enum, 3, "google.cloud.domains.v1beta1.DomainNotice"
137
+ repeated :contact_notices, :enum, 4, "google.cloud.domains.v1beta1.ContactNotice"
138
+ optional :yearly_price, :message, 5, "google.type.Money"
139
+ optional :validate_only, :bool, 6
140
+ end
141
+ add_message "google.cloud.domains.v1beta1.ListRegistrationsRequest" do
142
+ optional :parent, :string, 1
143
+ optional :page_size, :int32, 2
144
+ optional :page_token, :string, 3
145
+ optional :filter, :string, 4
146
+ end
147
+ add_message "google.cloud.domains.v1beta1.ListRegistrationsResponse" do
148
+ repeated :registrations, :message, 1, "google.cloud.domains.v1beta1.Registration"
149
+ optional :next_page_token, :string, 2
150
+ end
151
+ add_message "google.cloud.domains.v1beta1.GetRegistrationRequest" do
152
+ optional :name, :string, 1
153
+ end
154
+ add_message "google.cloud.domains.v1beta1.UpdateRegistrationRequest" do
155
+ optional :registration, :message, 1, "google.cloud.domains.v1beta1.Registration"
156
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
157
+ end
158
+ add_message "google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest" do
159
+ optional :registration, :string, 1
160
+ optional :management_settings, :message, 2, "google.cloud.domains.v1beta1.ManagementSettings"
161
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
162
+ end
163
+ add_message "google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest" do
164
+ optional :registration, :string, 1
165
+ optional :dns_settings, :message, 2, "google.cloud.domains.v1beta1.DnsSettings"
166
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
167
+ optional :validate_only, :bool, 4
168
+ end
169
+ add_message "google.cloud.domains.v1beta1.ConfigureContactSettingsRequest" do
170
+ optional :registration, :string, 1
171
+ optional :contact_settings, :message, 2, "google.cloud.domains.v1beta1.ContactSettings"
172
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
173
+ repeated :contact_notices, :enum, 4, "google.cloud.domains.v1beta1.ContactNotice"
174
+ optional :validate_only, :bool, 5
175
+ end
176
+ add_message "google.cloud.domains.v1beta1.ExportRegistrationRequest" do
177
+ optional :name, :string, 1
178
+ end
179
+ add_message "google.cloud.domains.v1beta1.DeleteRegistrationRequest" do
180
+ optional :name, :string, 1
181
+ end
182
+ add_message "google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest" do
183
+ optional :registration, :string, 1
184
+ end
185
+ add_message "google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest" do
186
+ optional :registration, :string, 1
187
+ end
188
+ add_message "google.cloud.domains.v1beta1.RegisterParameters" do
189
+ optional :domain_name, :string, 1
190
+ optional :availability, :enum, 2, "google.cloud.domains.v1beta1.RegisterParameters.Availability"
191
+ repeated :supported_privacy, :enum, 3, "google.cloud.domains.v1beta1.ContactPrivacy"
192
+ repeated :domain_notices, :enum, 4, "google.cloud.domains.v1beta1.DomainNotice"
193
+ optional :yearly_price, :message, 5, "google.type.Money"
194
+ end
195
+ add_enum "google.cloud.domains.v1beta1.RegisterParameters.Availability" do
196
+ value :AVAILABILITY_UNSPECIFIED, 0
197
+ value :AVAILABLE, 1
198
+ value :UNAVAILABLE, 2
199
+ value :UNSUPPORTED, 3
200
+ value :UNKNOWN, 4
201
+ end
202
+ add_message "google.cloud.domains.v1beta1.AuthorizationCode" do
203
+ optional :code, :string, 1
204
+ end
205
+ add_message "google.cloud.domains.v1beta1.OperationMetadata" do
206
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
207
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
208
+ optional :target, :string, 3
209
+ optional :verb, :string, 4
210
+ optional :status_detail, :string, 5
211
+ optional :api_version, :string, 6
212
+ end
213
+ add_enum "google.cloud.domains.v1beta1.ContactPrivacy" do
214
+ value :CONTACT_PRIVACY_UNSPECIFIED, 0
215
+ value :PUBLIC_CONTACT_DATA, 1
216
+ value :PRIVATE_CONTACT_DATA, 2
217
+ value :REDACTED_CONTACT_DATA, 3
218
+ end
219
+ add_enum "google.cloud.domains.v1beta1.DomainNotice" do
220
+ value :DOMAIN_NOTICE_UNSPECIFIED, 0
221
+ value :HSTS_PRELOADED, 1
222
+ end
223
+ add_enum "google.cloud.domains.v1beta1.ContactNotice" do
224
+ value :CONTACT_NOTICE_UNSPECIFIED, 0
225
+ value :PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT, 1
226
+ end
227
+ add_enum "google.cloud.domains.v1beta1.TransferLockState" do
228
+ value :TRANSFER_LOCK_STATE_UNSPECIFIED, 0
229
+ value :UNLOCKED, 1
230
+ value :LOCKED, 2
231
+ end
232
+ end
233
+ end
234
+
235
+ module Google
236
+ module Cloud
237
+ module Domains
238
+ module V1beta1
239
+ Registration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.Registration").msgclass
240
+ Registration::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.Registration.State").enummodule
241
+ Registration::Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.Registration.Issue").enummodule
242
+ ManagementSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ManagementSettings").msgclass
243
+ ManagementSettings::RenewalMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod").enummodule
244
+ DnsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings").msgclass
245
+ DnsSettings::CustomDns = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.CustomDns").msgclass
246
+ DnsSettings::GoogleDomainsDns = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns").msgclass
247
+ DnsSettings::DsRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.DsRecord").msgclass
248
+ DnsSettings::DsRecord::Algorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm").enummodule
249
+ DnsSettings::DsRecord::DigestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType").enummodule
250
+ DnsSettings::GlueRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.GlueRecord").msgclass
251
+ DnsSettings::DsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DnsSettings.DsState").enummodule
252
+ ContactSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ContactSettings").msgclass
253
+ ContactSettings::Contact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ContactSettings.Contact").msgclass
254
+ SearchDomainsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.SearchDomainsRequest").msgclass
255
+ SearchDomainsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.SearchDomainsResponse").msgclass
256
+ RetrieveRegisterParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest").msgclass
257
+ RetrieveRegisterParametersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse").msgclass
258
+ RegisterDomainRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.RegisterDomainRequest").msgclass
259
+ ListRegistrationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ListRegistrationsRequest").msgclass
260
+ ListRegistrationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ListRegistrationsResponse").msgclass
261
+ GetRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.GetRegistrationRequest").msgclass
262
+ UpdateRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.UpdateRegistrationRequest").msgclass
263
+ ConfigureManagementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest").msgclass
264
+ ConfigureDnsSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest").msgclass
265
+ ConfigureContactSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ConfigureContactSettingsRequest").msgclass
266
+ ExportRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ExportRegistrationRequest").msgclass
267
+ DeleteRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DeleteRegistrationRequest").msgclass
268
+ RetrieveAuthorizationCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest").msgclass
269
+ ResetAuthorizationCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest").msgclass
270
+ RegisterParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.RegisterParameters").msgclass
271
+ RegisterParameters::Availability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.RegisterParameters.Availability").enummodule
272
+ AuthorizationCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.AuthorizationCode").msgclass
273
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.OperationMetadata").msgclass
274
+ ContactPrivacy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ContactPrivacy").enummodule
275
+ DomainNotice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.DomainNotice").enummodule
276
+ ContactNotice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.ContactNotice").enummodule
277
+ TransferLockState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.domains.v1beta1.TransferLockState").enummodule
278
+ end
279
+ end
280
+ end
281
+ end
@@ -0,0 +1,117 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/domains/v1beta1/domains.proto for package 'google.cloud.domains.v1beta1'
3
+ # Original file comments:
4
+ # Copyright 2020 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/v1beta1/domains_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Domains
25
+ module V1beta1
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.v1beta1.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::V1beta1::SearchDomainsRequest, ::Google::Cloud::Domains::V1beta1::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::V1beta1::RetrieveRegisterParametersRequest, ::Google::Cloud::Domains::V1beta1::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::V1beta1::RegisterDomainRequest, ::Google::Longrunning::Operation
59
+ # Lists the `Registration` resources in a project.
60
+ rpc :ListRegistrations, ::Google::Cloud::Domains::V1beta1::ListRegistrationsRequest, ::Google::Cloud::Domains::V1beta1::ListRegistrationsResponse
61
+ # Gets the details of a `Registration` resource.
62
+ rpc :GetRegistration, ::Google::Cloud::Domains::V1beta1::GetRegistrationRequest, ::Google::Cloud::Domains::V1beta1::Registration
63
+ # Updates select fields of a `Registration` resource, notably `labels`. To
64
+ # update other fields, use the appropriate custom update method:
65
+ #
66
+ # * To update management settings, see `ConfigureManagementSettings`
67
+ # * To update DNS configuration, see `ConfigureDnsSettings`
68
+ # * To update contact information, see `ConfigureContactSettings`
69
+ rpc :UpdateRegistration, ::Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest, ::Google::Longrunning::Operation
70
+ # Updates a `Registration`'s management settings.
71
+ rpc :ConfigureManagementSettings, ::Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest, ::Google::Longrunning::Operation
72
+ # Updates a `Registration`'s DNS settings.
73
+ rpc :ConfigureDnsSettings, ::Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest, ::Google::Longrunning::Operation
74
+ # Updates a `Registration`'s contact settings. Some changes require
75
+ # confirmation by the domain's registrant contact .
76
+ rpc :ConfigureContactSettings, ::Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest, ::Google::Longrunning::Operation
77
+ # Exports a `Registration` that you no longer want to use with
78
+ # Cloud Domains. You can continue to use the domain in
79
+ # [Google Domains](https://domains.google/) until it expires.
80
+ #
81
+ # If the export is successful:
82
+ #
83
+ # * The resource's `state` becomes `EXPORTED`, meaning that it is no longer
84
+ # managed by Cloud Domains
85
+ # * Because individual users can own domains in Google Domains, the calling
86
+ # user becomes the domain's sole owner. Permissions for the domain are
87
+ # subsequently managed in Google Domains.
88
+ # * Without further action, the domain does not renew automatically.
89
+ # The new owner can set up billing in Google Domains to renew the domain
90
+ # if needed.
91
+ rpc :ExportRegistration, ::Google::Cloud::Domains::V1beta1::ExportRegistrationRequest, ::Google::Longrunning::Operation
92
+ # Deletes a `Registration` resource.
93
+ #
94
+ # This method only works on resources in one of the following states:
95
+ #
96
+ # * `state` is `EXPORTED` with `expire_time` in the past
97
+ # * `state` is `REGISTRATION_FAILED`
98
+ rpc :DeleteRegistration, ::Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest, ::Google::Longrunning::Operation
99
+ # Gets the authorization code of the `Registration` for the purpose of
100
+ # transferring the domain to another registrar.
101
+ #
102
+ # You can call this method only after 60 days have elapsed since the initial
103
+ # domain registration.
104
+ rpc :RetrieveAuthorizationCode, ::Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest, ::Google::Cloud::Domains::V1beta1::AuthorizationCode
105
+ # Resets the authorization code of the `Registration` to a new random string.
106
+ #
107
+ # You can call this method only after 60 days have elapsed since the initial
108
+ # domain registration.
109
+ rpc :ResetAuthorizationCode, ::Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest, ::Google::Cloud::Domains::V1beta1::AuthorizationCode
110
+ end
111
+
112
+ Stub = Service.rpc_stub_class
113
+ end
114
+ end
115
+ end
116
+ end
117
+ end