Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sahara data processing support #157

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ekasitk
Copy link
Contributor

@ekasitk ekasitk commented Sep 30, 2017

This PR provides the first version of sahara data processing support (ref. https://developer.openstack.org/api-ref/data-processing/).

@haphan
Copy link
Collaborator

haphan commented Feb 6, 2018

@ekasitk Is this PR ready for review? Thanks

@haphan haphan closed this Feb 6, 2018
@haphan haphan reopened this Feb 6, 2018
@ekasitk
Copy link
Contributor Author

ekasitk commented Feb 6, 2018

@haphan Yes, it is ready for review.

@haphan
Copy link
Collaborator

haphan commented Feb 6, 2018

Can you rebase with master and push again? It would also fix travis build @ekasitk

@ekasitk
Copy link
Contributor Author

ekasitk commented Feb 15, 2018

@haphan Rebase was done. Could you review it again?

Copy link
Collaborator

@haphan haphan left a comment

Choose a reason for hiding this comment

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

Hi @ekasitk, very high quality PR. Just a few comments below; mainly to follow existing standard and convention of other services in this SDK

  • Add description and return types where possible (src/DataProcessing/v1/Service.php). This will help to generate very nice reference doc.
  • Add unit tests
  • Nice to have: integration tests.

'neutronManagementNetwork' => '{neutronManagementNetworkId}',
];

$cluster = $sahara->createCluster($options);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint to $cluster
e.g. /**@var OpenStack\DataProcessing\v1\Models\Cluster $cluster */


$clusters = $sahara->createCluster($options);
foreach ($clusters as $cluster) {
print_r($cluster);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint


$sahara = $openstack->dataProcessingV1(['region' => '{region}']);

$cluster = $sahara->getCluster(['id' => '{clusterId}']);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint


$sahara = $openstack->dataProcessingV1(['region' => '{region}']);

$cluster = $sahara->getCluster(['id' => '{clusterId}']);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint

];

$clusters = $sahara->listClusters($options);
foreach ($clusters as $cluster) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint to $client


$sahara = $openstack->dataProcessingV1(['region' => '{region}']);

$cluster = $sahara->getCluster(['id' => '{clusterId}']);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint

'name' => '{ClusterTemplateName}',
];

$clusterTemplate = $sahara->createClusterTemplate($options);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type hint

protected $resourcesKey = 'images';

protected $aliases = [
'OS-EXT-IMG-SIZE:size' => 'OSEXTIMGSIZEsize',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we simplify to size?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants