Skip to content

DNS samples#150

Open
joshgav wants to merge 2 commits into
Azure-Samples:mainfrom
joshgav:dns-samples
Open

DNS samples#150
joshgav wants to merge 2 commits into
Azure-Samples:mainfrom
joshgav:dns-samples

Conversation

@joshgav

@joshgav joshgav commented Mar 21, 2018

Copy link
Copy Markdown
Contributor

depends on #149 to update Gopkg.* files, then this PR adds one line to Gopkg.lock for the dns package.

closes #87

helps with Azure/azure-sdk-for-go#1161

@vladbarosan

Copy link
Copy Markdown

@joshgav I approved #149 . Feel free to merge that then we can merge this.

Comment thread dns/dns.go
"github.com/Azure-Samples/azure-sdk-for-go-samples/helpers"
"github.com/Azure-Samples/azure-sdk-for-go-samples/iam"

dns "github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01/dns"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dns [](start = 1, length = 3)

dns is not needed

Comment thread dns/dns.go
helpers.ResourceGroupName(),
zoneName,
dns.Zone{
Location: to.StringPtr("global"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global [](start = 27, length = 6)

I dont know enough about the DNS service, exactly what dooes global mean in this context? Can't zones be created on westus?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dns is a global service so it doesn't really make sense to have a zone in a region. Is the parameter required ? it might be needed for private zones as those will be bound to a region.

@mcardosos mcardosos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is not passing, also it looks like this should be rebased

Comment thread dns/dns_test.go
os.Exit(m.Run())
}

func ExampleDnsZone() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this get a better name? More specific on what the sample is doing

@joshgav joshgav assigned joshgav and unassigned mcardosos Aug 9, 2018
@joshgav joshgav added this to the 0.3.0-preview milestone Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dns] add DNS sample

3 participants