Title: Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway · Issue #42 · softlayer/softlayer-java · GitHub
Open Graph Title: Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway · Issue #42 · softlayer/softlayer-java
X Title: Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway · Issue #42 · softlayer/softlayer-java
Description: Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway: com.softlayer.api.ApiException$Internal: Property 'networkVlan' not valid for 'SoftLayer_Network_Vlan'.(code: SoftLayer_...
Open Graph Description: Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway: com.softlayer.api.ApiException$Internal: Property 'networkVlan' not valid for 'S...
X Description: Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway: com.softlayer.api.ApiException$Internal: Property 'networkVlan' not vali...
Opengraph URL: https://github.com/softlayer/softlayer-java/issues/42
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway","articleBody":"Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway:\r\n\r\n```\r\ncom.softlayer.api.ApiException$Internal: Property 'networkVlan' not valid for 'SoftLayer_Network_Vlan'.(code: SoftLayer_Exception_WebService_ObjectMask, status: 500)\r\n```\r\n\r\nI found this error by using following java code:\r\n\r\n```\r\nGateway.Service gatewayService = Gateway.service(client, gatewayId);\r\n // Mask to get relational properties of a public vlan\r\ngatewayService.withMask().publicVlan().networkVlan().vlanNumber();\r\nVlan vlan = gatewayService.getObject().getPublicVlan();\r\n\r\n```\r\nI tried by removing networkVlan() in the mask, but vlanNumber() or other properties cannot be called after publicVlan().\r\n\r\nIt is possible to get local properties without masks but it's a problem when trying to get relational properties like primaryRouter, networkSpace, etc.\r\n\r\nThis same issue happens with getPrivateVlan method.\r\n\r\nRegards,\r\n","author":{"url":"https://github.com/acamacho82","@type":"Person","name":"acamacho82"},"datePublished":"2017-03-20T22:03:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/42/softlayer-java/issues/42"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:007fc491-b6d8-e6e6-32b9-c8216549721e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E24:12B7E9:2CE321E:3EF5BD4:697109B1 |
| html-safe-nonce | efd9fd288aa782cf13b98b22f72d29884c346b0583150b7baf93f7fc1feece83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTI0OjEyQjdFOToyQ0UzMjFFOjNFRjVCRDQ6Njk3MTA5QjEiLCJ2aXNpdG9yX2lkIjoiNjIzNDM0MTU5MTA5MTMxNzE2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c0fa09788073de9a82b3407ae19521112863a58c6935d8afd4f458a3d73cc2d2 |
| hovercard-subject-tag | issue:215569079 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/softlayer/softlayer-java/42/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a4a5f0015bd556d18ad0a5f902c387d02b3f4b2c776253a3bbe5ad0c5b9ecfc/softlayer/softlayer-java/issues/42 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a4a5f0015bd556d18ad0a5f902c387d02b3f4b2c776253a3bbe5ad0c5b9ecfc/softlayer/softlayer-java/issues/42 |
| og:image:alt | Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway: com.softlayer.api.ApiException$Internal: Property 'networkVlan' not valid for 'S... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | acamacho82 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6d0e7b0d5e294a53c55f49e80755e785182080c6e6a48c9ed353bedddaee69f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/softlayer/softlayer-java git https://github.com/softlayer/softlayer-java.git |
| octolytics-dimension-user_id | 49550 |
| octolytics-dimension-user_login | softlayer |
| octolytics-dimension-repository_id | 25829492 |
| octolytics-dimension-repository_nwo | softlayer/softlayer-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25829492 |
| octolytics-dimension-repository_network_root_nwo | softlayer/softlayer-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d5a3a396bc74e65fd3ef897b0a99a6e489debaa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width