Class: Google::Apis::AcmednsV1::ACMEDNSService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AcmednsV1::ACMEDNSService
- Defined in:
- lib/google/apis/acmedns_v1/service.rb
Overview
ACME DNS API
Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#get_acme_challenge_set(root_domain, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AcmednsV1::AcmeChallengeSet
Gets the ACME challenge set for a given domain name.
-
#initialize ⇒ ACMEDNSService
constructor
A new instance of ACMEDNSService.
-
#rotate_acme_challenge_set_challenges(root_domain, rotate_challenges_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AcmednsV1::AcmeChallengeSet
Rotate the ACME challenges for a given domain name.
Constructor Details
#initialize ⇒ ACMEDNSService
Returns a new instance of ACMEDNSService.
46 47 48 49 50 51 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 46 def initialize super('https://acmedns.googleapis.com/', '', client_name: 'google-apis-acmedns_v1', client_version: Google::Apis::AcmednsV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#get_acme_challenge_set(root_domain, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AcmednsV1::AcmeChallengeSet
Gets the ACME challenge set for a given domain name. Domain names must be provided in Punycode.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 75 def get_acme_challenge_set(root_domain, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/acmeChallengeSets/{rootDomain}', ) command.response_representation = Google::Apis::AcmednsV1::AcmeChallengeSet::Representation command.response_class = Google::Apis::AcmednsV1::AcmeChallengeSet command.params['rootDomain'] = root_domain unless root_domain.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rotate_acme_challenge_set_challenges(root_domain, rotate_challenges_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AcmednsV1::AcmeChallengeSet
Rotate the ACME challenges for a given domain name. By default, removes any challenges that are older than 30 days. Domain names must be provided in Punycode.
109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 109 def rotate_acme_challenge_set_challenges(root_domain, rotate_challenges_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/acmeChallengeSets/{rootDomain}:rotateChallenges', ) command.request_representation = Google::Apis::AcmednsV1::RotateChallengesRequest::Representation command.request_object = rotate_challenges_request_object command.response_representation = Google::Apis::AcmednsV1::AcmeChallengeSet::Representation command.response_class = Google::Apis::AcmednsV1::AcmeChallengeSet command.params['rootDomain'] = root_domain unless root_domain.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |