Skip to content

Commit

Permalink
feat(dns): update the API
Browse files Browse the repository at this point in the history
#### dns:v1
The following keys were added:
- schemas.RRSetRoutingPolicy.description
- schemas.RRSetRoutingPolicy.id
- schemas.RRSetRoutingPolicy.properties.geoPolicy.$ref
- schemas.RRSetRoutingPolicy.properties.kind.default
- schemas.RRSetRoutingPolicy.properties.kind.type
- schemas.RRSetRoutingPolicy.properties.wrrPolicy.$ref
- schemas.RRSetRoutingPolicy.type
- schemas.RRSetRoutingPolicyGeoPolicy.id
- schemas.RRSetRoutingPolicyGeoPolicy.properties.failovers.description
- schemas.RRSetRoutingPolicyGeoPolicy.properties.failovers.items.$ref
- schemas.RRSetRoutingPolicyGeoPolicy.properties.failovers.type
- schemas.RRSetRoutingPolicyGeoPolicy.properties.items.description
- schemas.RRSetRoutingPolicyGeoPolicy.properties.items.items.$ref
- schemas.RRSetRoutingPolicyGeoPolicy.properties.items.type
- schemas.RRSetRoutingPolicyGeoPolicy.properties.kind.default
- schemas.RRSetRoutingPolicyGeoPolicy.properties.kind.type
- schemas.RRSetRoutingPolicyGeoPolicy.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.id
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.kind.default
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.kind.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.location.description
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.location.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.rrdatas.items.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.rrdatas.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.signatureRrdatas.description
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.signatureRrdatas.items.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.signatureRrdatas.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.type
- schemas.RRSetRoutingPolicyWrrPolicy.id
- schemas.RRSetRoutingPolicyWrrPolicy.properties.items.items.$ref
- schemas.RRSetRoutingPolicyWrrPolicy.properties.items.type
- schemas.RRSetRoutingPolicyWrrPolicy.properties.kind.default
- schemas.RRSetRoutingPolicyWrrPolicy.properties.kind.type
- schemas.RRSetRoutingPolicyWrrPolicy.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.id
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.kind.default
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.kind.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.rrdatas.items.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.rrdatas.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.signatureRrdatas.description
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.signatureRrdatas.items.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.signatureRrdatas.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.weight.description
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.weight.format
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.weight.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.type
- schemas.ResourceRecordSet.properties.routingPolicy.$ref
- schemas.ResourceRecordSet.properties.routingPolicy.description

The following keys were changed:
- resources.changes.methods.create.parameters.managedZone.description
- resources.changes.methods.get.parameters.managedZone.description
- resources.changes.methods.list.parameters.managedZone.description
- resources.dnsKeys.methods.get.parameters.managedZone.description
- resources.dnsKeys.methods.list.parameters.managedZone.description
- resources.managedZones.methods.delete.parameters.managedZone.description
- resources.managedZones.methods.get.parameters.managedZone.description
- resources.managedZones.methods.patch.parameters.managedZone.description
- resources.managedZones.methods.update.parameters.managedZone.description
- resources.resourceRecordSets.methods.list.parameters.managedZone.description

#### dns:v1beta2
The following keys were added:
- schemas.RRSetRoutingPolicy.description
- schemas.RRSetRoutingPolicy.id
- schemas.RRSetRoutingPolicy.properties.geoPolicy.$ref
- schemas.RRSetRoutingPolicy.properties.kind.default
- schemas.RRSetRoutingPolicy.properties.kind.type
- schemas.RRSetRoutingPolicy.properties.wrrPolicy.$ref
- schemas.RRSetRoutingPolicy.type
- schemas.RRSetRoutingPolicyGeoPolicy.id
- schemas.RRSetRoutingPolicyGeoPolicy.properties.failovers.description
- schemas.RRSetRoutingPolicyGeoPolicy.properties.failovers.items.$ref
- schemas.RRSetRoutingPolicyGeoPolicy.properties.failovers.type
- schemas.RRSetRoutingPolicyGeoPolicy.properties.items.description
- schemas.RRSetRoutingPolicyGeoPolicy.properties.items.items.$ref
- schemas.RRSetRoutingPolicyGeoPolicy.properties.items.type
- schemas.RRSetRoutingPolicyGeoPolicy.properties.kind.default
- schemas.RRSetRoutingPolicyGeoPolicy.properties.kind.type
- schemas.RRSetRoutingPolicyGeoPolicy.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.id
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.kind.default
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.kind.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.location.description
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.location.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.rrdatas.items.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.rrdatas.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.signatureRrdatas.description
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.signatureRrdatas.items.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.properties.signatureRrdatas.type
- schemas.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.type
- schemas.RRSetRoutingPolicyWrrPolicy.id
- schemas.RRSetRoutingPolicyWrrPolicy.properties.items.items.$ref
- schemas.RRSetRoutingPolicyWrrPolicy.properties.items.type
- schemas.RRSetRoutingPolicyWrrPolicy.properties.kind.default
- schemas.RRSetRoutingPolicyWrrPolicy.properties.kind.type
- schemas.RRSetRoutingPolicyWrrPolicy.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.id
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.kind.default
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.kind.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.rrdatas.items.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.rrdatas.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.signatureRrdatas.description
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.signatureRrdatas.items.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.signatureRrdatas.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.weight.description
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.weight.format
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.properties.weight.type
- schemas.RRSetRoutingPolicyWrrPolicyWrrPolicyItem.type
- schemas.ResourceRecordSet.properties.routingPolicy.$ref
- schemas.ResourceRecordSet.properties.routingPolicy.description

The following keys were changed:
- resources.changes.methods.create.parameters.managedZone.description
- resources.changes.methods.get.parameters.managedZone.description
- resources.changes.methods.list.parameters.managedZone.description
- resources.dnsKeys.methods.get.parameters.managedZone.description
- resources.dnsKeys.methods.list.parameters.managedZone.description
- resources.managedZones.methods.delete.parameters.managedZone.description
- resources.managedZones.methods.get.parameters.managedZone.description
- resources.managedZones.methods.patch.parameters.managedZone.description
- resources.managedZones.methods.update.parameters.managedZone.description
- resources.resourceRecordSets.methods.list.parameters.managedZone.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 20, 2020
1 parent 22b1a56 commit 18ba27d
Show file tree
Hide file tree
Showing 4 changed files with 416 additions and 82 deletions.
138 changes: 127 additions & 11 deletions discovery/dns-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -179,7 +179,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -213,7 +213,7 @@
],
"parameters": {
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -296,7 +296,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -335,7 +335,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -531,7 +531,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -565,7 +565,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -647,7 +647,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -687,7 +687,7 @@
"type": "string"
},
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -990,7 +990,7 @@
],
"parameters": {
"managedZone": {
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
"description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -1037,7 +1037,7 @@
}
}
},
"revision": "20200806",
"revision": "20201003",
"rootUrl": "https://dns.googleapis.com/",
"schemas": {
"Change": {
Expand Down Expand Up @@ -1910,6 +1910,118 @@
},
"type": "object"
},
"RRSetRoutingPolicy": {
"description": "A RRSetRoutingPolicy represents ResourceRecordSet data that will be returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.",
"id": "RRSetRoutingPolicy",
"properties": {
"geoPolicy": {
"$ref": "RRSetRoutingPolicyGeoPolicy"
},
"kind": {
"default": "dns#rRSetRoutingPolicy",
"type": "string"
},
"wrrPolicy": {
"$ref": "RRSetRoutingPolicyWrrPolicy"
}
},
"type": "object"
},
"RRSetRoutingPolicyGeoPolicy": {
"id": "RRSetRoutingPolicyGeoPolicy",
"properties": {
"failovers": {
"description": "If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won't be healthchecked - we'll return the primarily configured rrdata irrespective of whether it is healthy or not.",
"items": {
"$ref": "RRSetRoutingPolicyGeoPolicyGeoPolicyItem"
},
"type": "array"
},
"items": {
"description": "The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.",
"items": {
"$ref": "RRSetRoutingPolicyGeoPolicyGeoPolicyItem"
},
"type": "array"
},
"kind": {
"default": "dns#rRSetRoutingPolicyGeoPolicy",
"type": "string"
}
},
"type": "object"
},
"RRSetRoutingPolicyGeoPolicyGeoPolicyItem": {
"id": "RRSetRoutingPolicyGeoPolicyGeoPolicyItem",
"properties": {
"kind": {
"default": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem",
"type": "string"
},
"location": {
"description": "The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g \"us-east1\", \"southamerica-east1\", \"asia-east1\", etc.",
"type": "string"
},
"rrdatas": {
"items": {
"type": "string"
},
"type": "array"
},
"signatureRrdatas": {
"description": "DNSSEC generated signatures for the above geo_rrdata.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"RRSetRoutingPolicyWrrPolicy": {
"id": "RRSetRoutingPolicyWrrPolicy",
"properties": {
"items": {
"items": {
"$ref": "RRSetRoutingPolicyWrrPolicyWrrPolicyItem"
},
"type": "array"
},
"kind": {
"default": "dns#rRSetRoutingPolicyWrrPolicy",
"type": "string"
}
},
"type": "object"
},
"RRSetRoutingPolicyWrrPolicyWrrPolicyItem": {
"id": "RRSetRoutingPolicyWrrPolicyWrrPolicyItem",
"properties": {
"kind": {
"default": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem",
"type": "string"
},
"rrdatas": {
"items": {
"type": "string"
},
"type": "array"
},
"signatureRrdatas": {
"description": "DNSSEC generated signatures for the above wrr_rrdata.",
"items": {
"type": "string"
},
"type": "array"
},
"weight": {
"description": "The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be a decimal in the range [0,1].",
"format": "double",
"type": "number"
}
},
"type": "object"
},
"ResourceRecordSet": {
"description": "A unit of data that will be returned by the DNS servers.",
"id": "ResourceRecordSet",
Expand All @@ -1922,6 +2034,10 @@
"description": "For example, www.example.com.",
"type": "string"
},
"routingPolicy": {
"$ref": "RRSetRoutingPolicy",
"description": "Configures dynamic query responses based on geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy(dynamic). An error is returned otherwise."
},
"rrdatas": {
"description": "As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.",
"items": {
Expand Down
Loading

0 comments on commit 18ba27d

Please sign in to comment.