Skip to content

Commit

Permalink
feat: add a install_ops_agent field to InstancePolicyOrTemplate for O…
Browse files Browse the repository at this point in the history
…ps Agent support

---
docs:Add instructions on how to configure cross-project pubsub publisher

---
docs: document default disk type: pd-standard for non boot disk, pd-balanced for boot disk

---
docs: Update list of volume.mount_options field

---
docs: Update GCS description of volume.mount_options field

---
docs: Update links in the description of volume.mount_options field
PiperOrigin-RevId: 646638165

Source-Link: googleapis/googleapis@0333730

Source-Link: googleapis/googleapis-gen@1521ef6
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmF0Y2guVjEvLk93bEJvdC55YW1sIiwiaCI6IjE1MjFlZjYyMDliY2Q2MmU5OTI0ZjJjZWFlZTVjMzY0MTE1MTBhM2IifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Jun 26, 2024
1 parent 5e272cf commit d8e69ab
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 46 deletions.
126 changes: 89 additions & 37 deletions apis/Google.Cloud.Batch.V1/Google.Cloud.Batch.V1/Job.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static partial class JobReflection {
"YXR1cy5TdGF0ZRI/Cg5uZXdfdGFza19zdGF0ZRgDIAEoDjInLmdvb2dsZS5j",
"bG91ZC5iYXRjaC52MS5UYXNrU3RhdHVzLlN0YXRlIksKBFR5cGUSFAoQVFlQ",
"RV9VTlNQRUNJRklFRBAAEhUKEUpPQl9TVEFURV9DSEFOR0VEEAESFgoSVEFT",
"S19TVEFURV9DSEFOR0VEEAIivA4KEEFsbG9jYXRpb25Qb2xpY3kSSAoIbG9j",
"S19TVEFURV9DSEFOR0VEEAIi3A4KEEFsbG9jYXRpb25Qb2xpY3kSSAoIbG9j",
"YXRpb24YASABKAsyNi5nb29nbGUuY2xvdWQuYmF0Y2gudjEuQWxsb2NhdGlv",
"blBvbGljeS5Mb2NhdGlvblBvbGljeRJTCglpbnN0YW5jZXMYCCADKAsyQC5n",
"b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FzY2hlZHVsaW5nX3BvbGljeRgGIAEoDjIxLmdvb2ds",
"ZS5jbG91ZC5iYXRjaC52MS5UYXNrR3JvdXAuU2NoZWR1bGluZ1BvbGljeRI9",
"ChF0YXNrX2Vudmlyb25tZW50cxgJIAMoCzIiLmdvb2dsZS5jbG91ZC5iYXRj",
"aC52MS5FbnZpcm9ubWVudBIbChN0YXNrX2NvdW50X3Blcl9ub2RlGAogASgD",
"EhoKEnJlcXVpcmVfaG9zdHNfZmlsZRgLIAEoCBIWCg5wZXJtaXNzaXZlX3Nz",
"aBgMIAEoCBIcCg9ydW5fYXNfbm9uX3Jvb3QYDiABKAhCA+BBASJcChBTY2hl",
"ZHVsaW5nUG9saWN5EiEKHVNDSEVEVUxJTkdfUE9MSUNZX1VOU1BFQ0lGSUVE",
"EAASFwoTQVNfU09PTl9BU19QT1NTSUJMRRABEgwKCElOX09SREVSEAI6b+pB",
"bAoeYmF0Y2guZ29vZ2xlYXBpcy5jb20vVGFza0dyb3VwEkpwcm9qZWN0cy97",
"cHJvamVjdH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vam9icy97am9ifS90YXNr",
"R3JvdXBzL3t0YXNrX2dyb3VwfSIvCg5TZXJ2aWNlQWNjb3VudBINCgVlbWFp",
"bBgBIAEoCRIOCgZzY29wZXMYAiADKAlCqQEKGWNvbS5nb29nbGUuY2xvdWQu",
"YmF0Y2gudjFCCEpvYlByb3RvUAFaL2Nsb3VkLmdvb2dsZS5jb20vZ28vYmF0",
"Y2gvYXBpdjEvYmF0Y2hwYjtiYXRjaHBiogIDR0NCqgIVR29vZ2xlLkNsb3Vk",
"LkJhdGNoLlYxygIVR29vZ2xlXENsb3VkXEJhdGNoXFYx6gIYR29vZ2xlOjpD",
"bG91ZDo6QmF0Y2g6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Batch.V1.TaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
Expand All @@ -153,7 +154,7 @@ public static partial class JobReflection {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.AttachedDisk), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.AttachedDisk.Parser, new[]{ "NewDisk", "ExistingDisk", "DeviceName" }, new[]{ "Attached" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.Accelerator), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.Accelerator.Parser, new[]{ "Type", "Count", "InstallGpuDrivers", "DriverVersion" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.InstancePolicy), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.InstancePolicy.Parser, new[]{ "MachineType", "MinCpuPlatform", "ProvisioningModel", "Accelerators", "BootDisk", "Disks", "Reservation" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.InstancePolicyOrTemplate), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.InstancePolicyOrTemplate.Parser, new[]{ "Policy", "InstanceTemplate", "InstallGpuDrivers" }, new[]{ "PolicyTemplate" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.InstancePolicyOrTemplate), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.InstancePolicyOrTemplate.Parser, new[]{ "Policy", "InstanceTemplate", "InstallGpuDrivers", "InstallOpsAgent" }, new[]{ "PolicyTemplate" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.NetworkInterface), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.NetworkInterface.Parser, new[]{ "Network", "Subnetwork", "NoExternalIpAddress" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.NetworkPolicy), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.NetworkPolicy.Parser, new[]{ "NetworkInterfaces" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1.AllocationPolicy.Types.PlacementPolicy), global::Google.Cloud.Batch.V1.AllocationPolicy.Types.PlacementPolicy.Parser, new[]{ "Collocation", "MaxDistance" }, null, null, null, null),
Expand Down Expand Up @@ -2250,11 +2251,19 @@ public sealed partial class JobNotification : pb::IMessage<JobNotification>
public const int PubsubTopicFieldNumber = 1;
private string pubsubTopic_ = "";
/// <summary>
/// The Pub/Sub topic where notifications like the job state changes
/// will be published. The topic must exist in the same project as
/// the job and billings will be charged to this project.
/// If not specified, no Pub/Sub messages will be sent.
/// Topic format: `projects/{project}/topics/{topic}`.
/// The Pub/Sub topic where notifications for the job, like state
/// changes, will be published. If undefined, no Pub/Sub notifications
/// are sent for this job.
///
/// Specify the topic using the following format:
/// `projects/{project}/topics/{topic}`.
/// Notably, if you want to specify a Pub/Sub topic that is in a
/// different project than the job, your administrator must grant your
/// project's Batch service agent permission to publish to that topic.
///
/// For more information about configuring Pub/Sub notifications for
/// a job, see
/// https://cloud.google.com/batch/docs/enable-notifications.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -3588,7 +3597,9 @@ public sealed partial class Disk : pb::IMessage<Disk>
/// Disk type as shown in `gcloud compute disk-types list`.
/// For example, local SSD uses type "local-ssd".
/// Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
/// or "pd-standard".
/// or "pd-standard". If not specified, "pd-standard" will be used as the
/// default type for non-boot disks, "pd-balanced" will be used as the
/// default type for boot disks.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -5042,6 +5053,7 @@ public sealed partial class InstancePolicyOrTemplate : pb::IMessage<InstancePoli
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public InstancePolicyOrTemplate(InstancePolicyOrTemplate other) : this() {
installGpuDrivers_ = other.installGpuDrivers_;
installOpsAgent_ = other.installOpsAgent_;
switch (other.PolicyTemplateCase) {
case PolicyTemplateOneofCase.Policy:
Policy = other.Policy.Clone();
Expand Down Expand Up @@ -5130,6 +5142,22 @@ public sealed partial class InstancePolicyOrTemplate : pb::IMessage<InstancePoli
}
}

/// <summary>Field number for the "install_ops_agent" field.</summary>
public const int InstallOpsAgentFieldNumber = 4;
private bool installOpsAgent_;
/// <summary>
/// Optional. Set this field true if you want Batch to install Ops Agent on
/// your behalf. Default is false.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool InstallOpsAgent {
get { return installOpsAgent_; }
set {
installOpsAgent_ = value;
}
}

private object policyTemplate_;
/// <summary>Enum of possible cases for the "policy_template" oneof.</summary>
public enum PolicyTemplateOneofCase {
Expand Down Expand Up @@ -5169,6 +5197,7 @@ public enum PolicyTemplateOneofCase {
if (!object.Equals(Policy, other.Policy)) return false;
if (InstanceTemplate != other.InstanceTemplate) return false;
if (InstallGpuDrivers != other.InstallGpuDrivers) return false;
if (InstallOpsAgent != other.InstallOpsAgent) return false;
if (PolicyTemplateCase != other.PolicyTemplateCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
Expand All @@ -5180,6 +5209,7 @@ public enum PolicyTemplateOneofCase {
if (policyTemplateCase_ == PolicyTemplateOneofCase.Policy) hash ^= Policy.GetHashCode();
if (HasInstanceTemplate) hash ^= InstanceTemplate.GetHashCode();
if (InstallGpuDrivers != false) hash ^= InstallGpuDrivers.GetHashCode();
if (InstallOpsAgent != false) hash ^= InstallOpsAgent.GetHashCode();
hash ^= (int) policyTemplateCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
Expand Down Expand Up @@ -5211,6 +5241,10 @@ public enum PolicyTemplateOneofCase {
output.WriteRawTag(24);
output.WriteBool(InstallGpuDrivers);
}
if (InstallOpsAgent != false) {
output.WriteRawTag(32);
output.WriteBool(InstallOpsAgent);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -5233,6 +5267,10 @@ public enum PolicyTemplateOneofCase {
output.WriteRawTag(24);
output.WriteBool(InstallGpuDrivers);
}
if (InstallOpsAgent != false) {
output.WriteRawTag(32);
output.WriteBool(InstallOpsAgent);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -5252,6 +5290,9 @@ public enum PolicyTemplateOneofCase {
if (InstallGpuDrivers != false) {
size += 1 + 1;
}
if (InstallOpsAgent != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -5267,6 +5308,9 @@ public enum PolicyTemplateOneofCase {
if (other.InstallGpuDrivers != false) {
InstallGpuDrivers = other.InstallGpuDrivers;
}
if (other.InstallOpsAgent != false) {
InstallOpsAgent = other.InstallOpsAgent;
}
switch (other.PolicyTemplateCase) {
case PolicyTemplateOneofCase.Policy:
if (Policy == null) {
Expand Down Expand Up @@ -5311,6 +5355,10 @@ public enum PolicyTemplateOneofCase {
InstallGpuDrivers = input.ReadBool();
break;
}
case 32: {
InstallOpsAgent = input.ReadBool();
break;
}
}
}
#endif
Expand Down Expand Up @@ -5343,6 +5391,10 @@ public enum PolicyTemplateOneofCase {
InstallGpuDrivers = input.ReadBool();
break;
}
case 32: {
InstallOpsAgent = input.ReadBool();
break;
}
}
}
}
Expand Down
22 changes: 13 additions & 9 deletions apis/Google.Cloud.Batch.V1/Google.Cloud.Batch.V1/Volume.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,19 @@ public sealed partial class Volume : pb::IMessage<Volume>
= pb::FieldCodec.ForString(42);
private readonly pbc::RepeatedField<string> mountOptions_ = new pbc::RepeatedField<string>();
/// <summary>
/// For Google Cloud Storage (GCS), mount options are the options supported by
/// the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
/// For existing persistent disks, mount options provided by the
/// mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
/// writing are supported. This is due to restrictions of multi-writer mode
/// (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
/// For other attached disks and Network File System (NFS), mount options are
/// these supported by the mount command
/// (https://man7.org/linux/man-pages/man8/mount.8.html).
/// Mount options vary based on the type of storage volume:
///
/// * For a Cloud Storage bucket, all the mount options provided
/// by
/// the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
/// are supported.
/// * For an existing persistent disk, all mount options provided by the
/// [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
/// except writing are supported. This is due to restrictions of
/// [multi-writer
/// mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
/// * For any other disk or a Network File System (NFS), all the
/// mount options provided by the `mount` command are supported.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down

0 comments on commit d8e69ab

Please sign in to comment.