Skip to content

Commit

Permalink
feat: Generate Google.Apis.CloudWorkstations.v1 version 1.68.0.3653
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Jan 13, 2025
1 parent f53d9ee commit 9af12c1
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 13 deletions.
54 changes: 50 additions & 4 deletions DiscoveryJson/workstations.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@
}
}
},
"revision": "20241202",
"revision": "20250101",
"rootUrl": "https://workstations.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -1285,7 +1285,7 @@
"type": "object"
},
"BoostConfig": {
"description": "A boost configuration is a set of resources that a workstation can use to increase its performance. If a boost configuration is specified, when starting a workstation, users can choose to use a VM provisioned under the boost config by passing the boost config id in the start request. If no boost config id is provided in the start request, the system will choose a VM from the pool provisioned under the default config.",
"description": "A boost configuration is a set of resources that a workstation can use to increase its performance. If you specify a boost configuration, upon startup, workstation users can choose to use a VM provisioned under the boost config by passing the boost config ID in the start request. If the workstation user does not provide a boost config ID in the start request, the system will choose a VM from the pool provisioned under the default config.",
"id": "BoostConfig",
"properties": {
"accelerators": {
Expand All @@ -1305,7 +1305,7 @@
"type": "boolean"
},
"id": {
"description": "Required. The id to be used for the boost configuration.",
"description": "Required. The ID to be used for the boost configuration.",
"type": "string"
},
"machineType": {
Expand Down Expand Up @@ -1528,6 +1528,28 @@
},
"type": "object"
},
"GceInstanceHost": {
"description": "The Compute Engine instance host.",
"id": "GceInstanceHost",
"properties": {
"id": {
"description": "Optional. Output only. The ID of the Compute Engine instance.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Optional. Output only. The name of the Compute Engine instance.",
"readOnly": true,
"type": "string"
},
"zone": {
"description": "Optional. Output only. The zone of the Compute Engine instance.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GcePersistentDisk": {
"description": "An EphemeralDirectory is backed by a Compute Engine persistent disk.",
"id": "GcePersistentDisk",
Expand Down Expand Up @@ -1938,7 +1960,7 @@
"type": "object"
},
"PersistentDirectory": {
"description": "A directory to persist across workstation sessions.",
"description": "A directory to persist across workstation sessions. Updates to this field will not update existing workstations and will only take effect on new workstations.",
"id": "PersistentDirectory",
"properties": {
"gcePd": {
Expand Down Expand Up @@ -2044,6 +2066,17 @@
},
"type": "object"
},
"RuntimeHost": {
"description": "Runtime host for the workstation.",
"id": "RuntimeHost",
"properties": {
"gceInstanceHost": {
"$ref": "GceInstanceHost",
"description": "Specifies a Compute Engine instance as the host."
}
},
"type": "object"
},
"SetIamPolicyRequest": {
"description": "Request message for `SetIamPolicy` method.",
"id": "SetIamPolicyRequest",
Expand All @@ -2064,6 +2097,10 @@
"description": "Request message for StartWorkstation.",
"id": "StartWorkstationRequest",
"properties": {
"boostConfig": {
"description": "Optional. If set, the workstation starts using the boost configuration with the specified ID.",
"type": "string"
},
"etag": {
"description": "Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.",
"type": "string"
Expand Down Expand Up @@ -2209,6 +2246,15 @@
"readOnly": true,
"type": "boolean"
},
"runtimeHost": {
"$ref": "RuntimeHost",
"description": "Optional. Output only. Runtime host for the workstation when in STATE_RUNNING.",
"readOnly": true
},
"sourceWorkstation": {
"description": "Optional. The source workstation from which this workstation's persistent directories were cloned on creation.",
"type": "string"
},
"startTime": {
"description": "Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.",
"format": "google-datetime",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -2802,10 +2802,11 @@ public class Binding : Google.Apis.Requests.IDirectResponseSchema
}

/// <summary>
/// A boost configuration is a set of resources that a workstation can use to increase its performance. If a boost
/// configuration is specified, when starting a workstation, users can choose to use a VM provisioned under the
/// boost config by passing the boost config id in the start request. If no boost config id is provided in the start
/// request, the system will choose a VM from the pool provisioned under the default config.
/// A boost configuration is a set of resources that a workstation can use to increase its performance. If you
/// specify a boost configuration, upon startup, workstation users can choose to use a VM provisioned under the
/// boost config by passing the boost config ID in the start request. If the workstation user does not provide a
/// boost config ID in the start request, the system will choose a VM from the pool provisioned under the default
/// config.
/// </summary>
public class BoostConfig : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down Expand Up @@ -2841,7 +2842,7 @@ public class BoostConfig : Google.Apis.Requests.IDirectResponseSchema
[Newtonsoft.Json.JsonPropertyAttribute("enableNestedVirtualization")]
public virtual System.Nullable<bool> EnableNestedVirtualization { get; set; }

/// <summary>Required. The id to be used for the boost configuration.</summary>
/// <summary>Required. The ID to be used for the boost configuration.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }

Expand Down Expand Up @@ -3150,6 +3151,25 @@ public class GceInstance : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>The Compute Engine instance host.</summary>
public class GceInstanceHost : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Optional. Output only. The ID of the Compute Engine instance.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }

/// <summary>Optional. Output only. The name of the Compute Engine instance.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }

/// <summary>Optional. Output only. The zone of the Compute Engine instance.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("zone")]
public virtual string Zone { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>An EphemeralDirectory is backed by a Compute Engine persistent disk.</summary>
public class GcePersistentDisk : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down Expand Up @@ -3697,7 +3717,10 @@ public virtual System.DateTimeOffset? EndTimeDateTimeOffset
public virtual string ETag { get; set; }
}

/// <summary>A directory to persist across workstation sessions.</summary>
/// <summary>
/// A directory to persist across workstation sessions. Updates to this field will not update existing workstations
/// and will only take effect on new workstations.
/// </summary>
public class PersistentDirectory : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>A PersistentDirectory backed by a Compute Engine persistent disk.</summary>
Expand Down Expand Up @@ -3863,6 +3886,17 @@ public class ReadinessCheck : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>Runtime host for the workstation.</summary>
public class RuntimeHost : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Specifies a Compute Engine instance as the host.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("gceInstanceHost")]
public virtual GceInstanceHost GceInstanceHost { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>Request message for `SetIamPolicy` method.</summary>
public class SetIamPolicyRequest : Google.Apis.Requests.IDirectResponseSchema
{
Expand All @@ -3888,6 +3922,12 @@ public class SetIamPolicyRequest : Google.Apis.Requests.IDirectResponseSchema
/// <summary>Request message for StartWorkstation.</summary>
public class StartWorkstationRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>
/// Optional. If set, the workstation starts using the boost configuration with the specified ID.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("boostConfig")]
public virtual string BoostConfig { get; set; }

/// <summary>
/// Optional. If set, the request will be rejected if the latest version of the workstation on the server does
/// not have this ETag.
Expand Down Expand Up @@ -4103,6 +4143,17 @@ public virtual System.DateTimeOffset? DeleteTimeDateTimeOffset
[Newtonsoft.Json.JsonPropertyAttribute("reconciling")]
public virtual System.Nullable<bool> Reconciling { get; set; }

/// <summary>Optional. Output only. Runtime host for the workstation when in STATE_RUNNING.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("runtimeHost")]
public virtual RuntimeHost RuntimeHost { get; set; }

/// <summary>
/// Optional. The source workstation from which this workstation's persistent directories were cloned on
/// creation.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("sourceWorkstation")]
public virtual string SourceWorkstation { get; set; }

private string _startTimeRaw;

private object _startTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.CloudWorkstations.v1 Client Library</Title>
<Version>1.68.0.3623</Version>
<Version>1.68.0.3653</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<Copyright>Copyright 2025 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
<PackageProjectUrl>https://github.com/google/google-api-dotnet-client</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down

0 comments on commit 9af12c1

Please sign in to comment.