コード例 #1
0
 /// <summary>Snippet for CreateSnapshot</summary>
 public void CreateSnapshot()
 {
     // Snippet: CreateSnapshot(string, string, string, Snapshot, CallSettings)
     // Create client
     RegionDisksClient regionDisksClient = RegionDisksClient.Create();
     // Initialize request argument(s)
     string   project          = "";
     string   region           = "";
     string   disk             = "";
     Snapshot snapshotResource = new Snapshot();
     // Make the request
     Operation response = regionDisksClient.CreateSnapshot(project, region, disk, snapshotResource);
     // End snippet
 }
コード例 #2
0
 /// <summary>Snippet for CreateSnapshot</summary>
 public void CreateSnapshotRequestObject()
 {
     // Snippet: CreateSnapshot(CreateSnapshotRegionDiskRequest, CallSettings)
     // Create client
     RegionDisksClient regionDisksClient = RegionDisksClient.Create();
     // Initialize request argument(s)
     CreateSnapshotRegionDiskRequest request = new CreateSnapshotRegionDiskRequest
     {
         Disk             = "",
         RequestId        = "",
         Region           = "",
         Project          = "",
         SnapshotResource = new Snapshot(),
     };
     // Make the request
     Operation response = regionDisksClient.CreateSnapshot(request);
     // End snippet
 }