Skip to content

Commit

Permalink
standardize field title
Browse files Browse the repository at this point in the history
  • Loading branch information
shaleman committed Jan 22, 2016
1 parent 69ff0b9 commit 7380f46
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"properties": {
"appName": {
"type": "string",
"description": "Application Name"
"title": "Application Name"
},
"tenantName": {
"type": "string",
"description": "Tenant Name"
"title": "Tenant Name"
}
},
"link-sets": {
Expand Down
22 changes: 11 additions & 11 deletions client/contivModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ var AppModalView = React.createClass({
<div className='modal-body' style={ {margin: '5%',} }>


<Input type='text' label='' ref='appName' defaultValue={obj.appName} placeholder='' />
<Input type='text' label='Application Name' ref='appName' defaultValue={obj.appName} placeholder='Application Name' />

<Input type='text' label='' ref='tenantName' defaultValue={obj.tenantName} placeholder='' />
<Input type='text' label='Tenant Name' ref='tenantName' defaultValue={obj.tenantName} placeholder='Tenant Name' />

</div>
<div className='modal-footer'>
Expand Down Expand Up @@ -488,7 +488,7 @@ var ServiceModalView = React.createClass({
<div className='modal-body' style={ {margin: '5%',} }>


<Input type='text' label='' ref='appName' defaultValue={obj.appName} placeholder='' />
<Input type='text' label='Application Name' ref='appName' defaultValue={obj.appName} placeholder='Application Name' />

<Input type='text' label='' ref='command' defaultValue={obj.command} placeholder='' />

Expand All @@ -506,9 +506,9 @@ var ServiceModalView = React.createClass({

<Input type='text' label='' ref='scale' defaultValue={obj.scale} placeholder='' />

<Input type='text' label='' ref='serviceName' defaultValue={obj.serviceName} placeholder='' />
<Input type='text' label='Service Name' ref='serviceName' defaultValue={obj.serviceName} placeholder='Service Name' />

<Input type='text' label='' ref='tenantName' defaultValue={obj.tenantName} placeholder='' />
<Input type='text' label='Tenant Name' ref='tenantName' defaultValue={obj.tenantName} placeholder='Tenant Name' />

<Input type='text' label='' ref='volumeProfile' defaultValue={obj.volumeProfile} placeholder='' />

Expand Down Expand Up @@ -567,11 +567,11 @@ var ServiceInstanceModalView = React.createClass({

<Input type='text' label='' ref='appName' defaultValue={obj.appName} placeholder='' />

<Input type='text' label='' ref='instanceId' defaultValue={obj.instanceId} placeholder='' />
<Input type='text' label='Service instance id' ref='instanceId' defaultValue={obj.instanceId} placeholder='Service instance id' />

<Input type='text' label='' ref='serviceName' defaultValue={obj.serviceName} placeholder='' />

<Input type='text' label='' ref='tenantName' defaultValue={obj.tenantName} placeholder='' />
<Input type='text' label='Tenant Name' ref='tenantName' defaultValue={obj.tenantName} placeholder='Tenant Name' />

<Input type='text' label='' ref='volumes' defaultValue={obj.volumes} placeholder='' />

Expand Down Expand Up @@ -693,9 +693,9 @@ var VolumeModalView = React.createClass({

<Input type='text' label='' ref='size' defaultValue={obj.size} placeholder='' />

<Input type='text' label='' ref='tenantName' defaultValue={obj.tenantName} placeholder='' />
<Input type='text' label='Tenant Name' ref='tenantName' defaultValue={obj.tenantName} placeholder='Tenant Name' />

<Input type='text' label='' ref='volumeName' defaultValue={obj.volumeName} placeholder='' />
<Input type='text' label='Volume Name' ref='volumeName' defaultValue={obj.volumeName} placeholder='Volume Name' />

</div>
<div className='modal-footer'>
Expand Down Expand Up @@ -758,9 +758,9 @@ var VolumeProfileModalView = React.createClass({

<Input type='text' label='' ref='size' defaultValue={obj.size} placeholder='' />

<Input type='text' label='' ref='tenantName' defaultValue={obj.tenantName} placeholder='' />
<Input type='text' label='Tenant Name' ref='tenantName' defaultValue={obj.tenantName} placeholder='Tenant Name' />

<Input type='text' label='' ref='volumeProfileName' defaultValue={obj.volumeProfileName} placeholder='' />
<Input type='text' label='Volume profile Name' ref='volumeProfileName' defaultValue={obj.volumeProfileName} placeholder='Volume profile Name' />

</div>
<div className='modal-footer'>
Expand Down
22 changes: 11 additions & 11 deletions client/contivModelClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ type App struct {
// every object has a key
Key string `json:"key,omitempty"`

AppName string `json:"appName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
AppName string `json:"appName,omitempty"` // Application Name
TenantName string `json:"tenantName,omitempty"` // Tenant Name

// add link-sets and links
LinkSets AppLinkSets `json:"link-sets,omitempty"`
Expand Down Expand Up @@ -248,7 +248,7 @@ type Service struct {
// every object has a key
Key string `json:"key,omitempty"`

AppName string `json:"appName,omitempty"` //
AppName string `json:"appName,omitempty"` // Application Name
Command string `json:"command,omitempty"` //
Cpu string `json:"cpu,omitempty"` //
EndpointGroups []string `json:"endpointGroups,omitempty"`
Expand All @@ -257,8 +257,8 @@ type Service struct {
Memory string `json:"memory,omitempty"` //
Networks []string `json:"networks,omitempty"`
Scale int `json:"scale,omitempty"` //
ServiceName string `json:"serviceName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
ServiceName string `json:"serviceName,omitempty"` // Service Name
TenantName string `json:"tenantName,omitempty"` // Tenant Name
VolumeProfile string `json:"volumeProfile,omitempty"` //

// add link-sets and links
Expand All @@ -282,9 +282,9 @@ type ServiceInstance struct {
Key string `json:"key,omitempty"`

AppName string `json:"appName,omitempty"` //
InstanceID string `json:"instanceId,omitempty"` //
InstanceID string `json:"instanceId,omitempty"` // Service instance id
ServiceName string `json:"serviceName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` // Tenant Name
Volumes []string `json:"volumes,omitempty"`

// add link-sets and links
Expand Down Expand Up @@ -328,8 +328,8 @@ type Volume struct {
MountPoint string `json:"mountPoint,omitempty"` //
PoolName string `json:"poolName,omitempty"` //
Size string `json:"size,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
VolumeName string `json:"volumeName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` // Tenant Name
VolumeName string `json:"volumeName,omitempty"` // Volume Name

// add link-sets and links
LinkSets VolumeLinkSets `json:"link-sets,omitempty"`
Expand All @@ -352,8 +352,8 @@ type VolumeProfile struct {
MountPoint string `json:"mountPoint,omitempty"` //
PoolName string `json:"poolName,omitempty"` //
Size string `json:"size,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
VolumeProfileName string `json:"volumeProfileName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` // Tenant Name
VolumeProfileName string `json:"volumeProfileName,omitempty"` // Volume profile Name

// add link-sets and links
LinkSets VolumeProfileLinkSets `json:"link-sets,omitempty"`
Expand Down
22 changes: 11 additions & 11 deletions contivModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type App struct {
// every object has a key
Key string `json:"key,omitempty"`

AppName string `json:"appName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
AppName string `json:"appName,omitempty"` // Application Name
TenantName string `json:"tenantName,omitempty"` // Tenant Name

// add link-sets and links
LinkSets AppLinkSets `json:"link-sets,omitempty"`
Expand Down Expand Up @@ -145,7 +145,7 @@ type Service struct {
// every object has a key
Key string `json:"key,omitempty"`

AppName string `json:"appName,omitempty"` //
AppName string `json:"appName,omitempty"` // Application Name
Command string `json:"command,omitempty"` //
Cpu string `json:"cpu,omitempty"` //
EndpointGroups []string `json:"endpointGroups,omitempty"`
Expand All @@ -154,8 +154,8 @@ type Service struct {
Memory string `json:"memory,omitempty"` //
Networks []string `json:"networks,omitempty"`
Scale int `json:"scale,omitempty"` //
ServiceName string `json:"serviceName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
ServiceName string `json:"serviceName,omitempty"` // Service Name
TenantName string `json:"tenantName,omitempty"` // Tenant Name
VolumeProfile string `json:"volumeProfile,omitempty"` //

// add link-sets and links
Expand All @@ -179,9 +179,9 @@ type ServiceInstance struct {
Key string `json:"key,omitempty"`

AppName string `json:"appName,omitempty"` //
InstanceID string `json:"instanceId,omitempty"` //
InstanceID string `json:"instanceId,omitempty"` // Service instance id
ServiceName string `json:"serviceName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` // Tenant Name
Volumes []string `json:"volumes,omitempty"`

// add link-sets and links
Expand Down Expand Up @@ -225,8 +225,8 @@ type Volume struct {
MountPoint string `json:"mountPoint,omitempty"` //
PoolName string `json:"poolName,omitempty"` //
Size string `json:"size,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
VolumeName string `json:"volumeName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` // Tenant Name
VolumeName string `json:"volumeName,omitempty"` // Volume Name

// add link-sets and links
LinkSets VolumeLinkSets `json:"link-sets,omitempty"`
Expand All @@ -249,8 +249,8 @@ type VolumeProfile struct {
MountPoint string `json:"mountPoint,omitempty"` //
PoolName string `json:"poolName,omitempty"` //
Size string `json:"size,omitempty"` //
TenantName string `json:"tenantName,omitempty"` //
VolumeProfileName string `json:"volumeProfileName,omitempty"` //
TenantName string `json:"tenantName,omitempty"` // Tenant Name
VolumeProfileName string `json:"volumeProfileName,omitempty"` // Volume profile Name

// add link-sets and links
LinkSets VolumeProfileLinkSets `json:"link-sets,omitempty"`
Expand Down
6 changes: 3 additions & 3 deletions service.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"properties": {
"serviceName": {
"type": "string",
"description": "Service Name"
"title": "Service Name"
},
"appName": {
"type": "string",
"description": "Application Name"
"title": "Application Name"
},
"tenantName": {
"type": "string",
"description": "Tenant Name"
"title": "Tenant Name"
},
"imageName": {
"type": "string"
Expand Down
4 changes: 2 additions & 2 deletions serviceInstance.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"properties": {
"instanceId": {
"type": "string",
"description": "Service instance id"
"title": "Service instance id"
},
"tenantName": {
"type": "string",
"description": "Tenant Name"
"title": "Tenant Name"
},
"appName": {
"type": "string"
Expand Down
4 changes: 2 additions & 2 deletions volume.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"properties": {
"volumeName": {
"type": "string",
"description": "Volume Name"
"title": "Volume Name"
},
"tenantName": {
"type": "string",
"description": "Tenant Name"
"title": "Tenant Name"
},
"datastoreType": {
"type": "string"
Expand Down
4 changes: 2 additions & 2 deletions volumeProfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"properties": {
"volumeProfileName": {
"type": "string",
"description": "Volume profile Name"
"title": "Volume profile Name"
},
"tenantName": {
"type": "string",
"description": "Tenant Name"
"title": "Tenant Name"
},
"datastoreType": {
"type": "string"
Expand Down

0 comments on commit 7380f46

Please sign in to comment.