Skip to content

Commit

Permalink
Added various missing bits of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sreinkemeier committed Mar 13, 2018
1 parent 7ac7170 commit 39c0200
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Example to Update an IKE policy
}
updatedPolicy, err := ikepolicies.Update(client, "5c561d9d-eaea-45f6-ae3e-08d1a7080828", updateOpts).Extract()
if err != nil {
t.Fatalf("Unable to update IKE policy: %v", err)
panic(err)
}
Expand Down
18 changes: 18 additions & 0 deletions openstack/networking/v2/extensions/vpnaas/ipsecpolicies/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ Example to Delete a Policy
panic(err)
}
Example to Show the details of a specific IPSec policy by ID
policy, err := ipsecpolicies.Get(client, "f2b08c1e-aa81-4668-8ae1-1401bcb0576c").Extract()
if err != nil {
panic(err)
}
Example to Update an IPSec policy
updateOpts := ipsecpolicies.UpdateOpts{
Name: "updatedname",
Description: "updated policy",
}
updatedPolicy, err := ipsecpolicies.Update(client, "5c561d9d-eaea-45f6-ae3e-08d1a7080828", updateOpts).Extract()
if err != nil {
panic(err)
}
Example to List IPSec policies
allPages, err := ipsecpolicies.List(client, nil).AllPages()
Expand Down
7 changes: 7 additions & 0 deletions openstack/networking/v2/extensions/vpnaas/services/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,12 @@ Example to Delete a Service
panic(err)
}
Example to Show the details of a specific Service by ID
service, err := services.Get(client, "f2b08c1e-aa81-4668-8ae1-1401bcb0576c").Extract()
if err != nil {
panic(err)
}
*/
package services

0 comments on commit 39c0200

Please sign in to comment.