Skip to content

Conversation

@joshgav
Copy link
Contributor

@joshgav joshgav commented Mar 21, 2018

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

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

"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
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

helpers.ResourceGroupName(),
zoneName,
dns.Zone{
Location: to.StringPtr("global"),
Copy link
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?

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.

Copy link
Contributor

@mcardosos mcardosos left a comment

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

os.Exit(m.Run())
}

func ExampleDnsZone() {
Copy link
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