github.com/microsoft/moc@v0.17.1/rpc/cloudagent/compute/galleryimage/moc_cloudagent_galleryimage.proto (about)

     1  // Copyright (c) Microsoft Corporation.
     2  // Licensed under the Apache v2.0 license.
     3  
     4  syntax = "proto3";
     5  option go_package = "github.com/microsoft/moc/rpc/cloudagent/compute";
     6  package moc.cloudagent.compute;
     7  
     8  import "google/protobuf/wrappers.proto";
     9  import "moc_common_common.proto";
    10  
    11  enum GalleryImageOSType {
    12  	UNKNOWN = 0;
    13  	LINUX = 1;
    14  	WINDOWS = 2;
    15  }
    16  
    17  message GalleryImageRequest {
    18  	repeated GalleryImage GalleryImages = 1;
    19  	Operation OperationType = 2;
    20  }
    21  
    22  message GalleryImageResponse {
    23  	repeated GalleryImage GalleryImages = 1;
    24  	google.protobuf.BoolValue Result = 2;
    25  	string  Error = 3;
    26  }
    27  
    28  message SFSImageProperties {
    29  	string catalogName = 1;
    30  	string audience = 2;
    31  	string version = 3;
    32  	string releaseName = 4;
    33  	string destinationDir = 5;
    34  	uint32 parts = 6;
    35  }
    36  message LocalImageProperties {
    37  	string path = 1 [(sensitive) = true];
    38  }
    39  message CloneImageProperties {
    40  	string cloneSource = 1;
    41  }
    42  message HttpImageProperties {
    43  	string httpURL = 1;
    44  }
    45  message AzureGalleryImageProperties {
    46  	string sasURI = 1 [(sensitive) = true];
    47  	string version = 2;
    48  }
    49  
    50  message GalleryImage {
    51  	string name = 1;
    52  	string id = 2;
    53  	GalleryImageOSType imageOSType = 3;
    54  	// Path of the image on the cloud
    55  	string path = 4 [(sensitive) = true];
    56  	Status status = 5;
    57  	string locationName = 6;
    58  	string publisher = 7;
    59  	string sku = 8;
    60  	string offer = 9;
    61  	string containerName = 10;
    62  	// Source of the GalleryImage from where we can copy the image from.
    63  	string sourcePath = 11 [(sensitive) = true];
    64  	Tags tags = 12;
    65  	ImageSource sourceType = 13;
    66  	HyperVGeneration hyperVGeneration = 14;
    67  	CloudInitDataSource cloudInitDataSource = 15;
    68  }
    69  
    70  service GalleryImageAgent {
    71  	rpc Invoke(GalleryImageRequest) returns (GalleryImageResponse) {}
    72  }