C# Class GoogleCloudExtension.CloudExplorerSources.Gae.ServiceViewModel

This class represents a view of a GAE service in the Google Cloud Explorer Window.
Inheritance: GoogleCloudExtension.CloudExplorer.TreeHierarchy, ICloudExplorerItemSource
ファイルを表示 Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Properties

Property Type Description
root GaeSourceRootViewModel

Public Methods

Method Description
GetItem ( ) : ServiceItem
ServiceViewModel ( GaeSourceRootViewModel owner, Service service ) : Google.Apis.Appengine.v1.Data

Protected Methods

Method Description
OnIsExpandedChanged ( bool newValue ) : void

Private Methods

Method Description
DeleteService ( ) : void

Deletes 'this' service.

OnDeleteService ( ) : void

Promptes the user if they would like to delete this service.

OnOpenOnCloudConsoleCommand ( ) : void
OnOpenService ( ) : void
OnPropertiesWindowCommand ( ) : void
OnShowAllRuntimes ( ) : void
OnShowFlexibleAndStandardVersions ( ) : void
OnShowOnlyDotNetRuntimes ( ) : void
OnShowOnlyFlexVersions ( ) : void
OnShowOnlyVersionsWithTraffic ( ) : void
OnShowVersionsWithAndWithoutTraffic ( ) : void
OnSplitTraffic ( ) : void

Opens the dialog to manage traffic splitting for the GAE service and updates the traffic split if the user makes a change.

PresentViewModels ( ) : void

Present the view model based on the versions and filters.

UpdateContextMenu ( ) : void

Update the context menu based on the current state of the service.

UpdateTrafficSplit ( TrafficSplit split ) : void

Update a service's traffic split.

UpdateViewModels ( IEnumerable versions ) : void

Update the view model with the version models for display.

Method Details

GetItem() public method

public GetItem ( ) : ServiceItem
return ServiceItem

OnIsExpandedChanged() protected method

protected OnIsExpandedChanged ( bool newValue ) : void
newValue bool
return void

ServiceViewModel() public method

public ServiceViewModel ( GaeSourceRootViewModel owner, Service service ) : Google.Apis.Appengine.v1.Data
owner GaeSourceRootViewModel
service Service
return Google.Apis.Appengine.v1.Data

Property Details

root public_oe property

public GaeSourceRootViewModel,GoogleCloudExtension.CloudExplorerSources.Gae root
return GaeSourceRootViewModel