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.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://acmedns.$UNIVERSE_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.
48 49 50 51 52 53 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 48 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', 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.
41 42 43 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 41 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.
46 47 48 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 46 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.
78 79 80 81 82 83 84 85 86 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 78 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.
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/google/apis/acmedns_v1/service.rb', line 113 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 |