softlayer-java icon indicating copy to clipboard operation
softlayer-java copied to clipboard

Relational property "storageType" is not visible for SoftLayer_Account::getNetworkStorage method

Open rubercuellar opened this issue 10 years ago • 4 comments

I am trying to get information about "storageType" relational property, but this property is not available to be used in object mask for method SoftLayer_Account::getNetworkStorage.

        Account.Service accountService = Account.service(client);
        // Declare an object mask, to get relational properties
        accountService.withMask().networkStorage().storageType();

The above code is not working, However, I can retrieve that property using a Rest request:

https://$user:[email protected]/rest/v3/SoftLayer_Account/getNetworkStorage?objectMask=mask[storageType]

Method: Get

rubercuellar avatar Jan 08 '16 16:01 rubercuellar

Could you provide more information about how the code is not working? Is there an API error, or incorrect results, or is the storageType() method not defined when creating the mask? I tested masking the storage type and it works here. Maybe try regenerating API classes?

camporter avatar Jan 18 '16 03:01 camporter

Hello camporter ,

As you mention, the storageType() method is not defined.

1-18-2016 9-36-32 am

rubercuellar avatar Jan 18 '16 13:01 rubercuellar

Yeah, try generating the API classes again, which should resolve the issue.

camporter avatar Jan 18 '16 16:01 camporter

I haven't seen an update, so I'm closing this. Please reopen if there is still an issue.

camporter avatar Apr 04 '16 05:04 camporter