Skip to content

Commit 2038d1d

Browse files
committed
feat: Generate Google.Apis.Storage.v1 version 1.70.0.3851
1 parent 673f12e commit 2038d1d

File tree

3 files changed

+218
-3
lines changed

3 files changed

+218
-3
lines changed

DiscoveryJson/storage.v1.json

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"location": "northamerica-south1"
254254
}
255255
],
256-
"etag": "\"31353834363234393531343533373938353433\"",
256+
"etag": "\"31383438373536343936353833383831333836\"",
257257
"icons": {
258258
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
259259
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
@@ -4544,7 +4544,7 @@
45444544
}
45454545
}
45464546
},
4547-
"revision": "20250629",
4547+
"revision": "20250718",
45484548
"rootUrl": "https://storage.googleapis.com/",
45494549
"schemas": {
45504550
"AdvanceRelocateBucketOperationRequest": {
@@ -4758,9 +4758,78 @@
47584758
"encryption": {
47594759
"description": "Encryption configuration for a bucket.",
47604760
"properties": {
4761+
"customerManagedEncryptionEnforcementConfig": {
4762+
"description": "If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.",
4763+
"properties": {
4764+
"effectiveTime": {
4765+
"description": "Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.",
4766+
"format": "date-time",
4767+
"type": "string"
4768+
},
4769+
"restrictionMode": {
4770+
"description": "Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.",
4771+
"enum": [
4772+
"NotRestricted",
4773+
"FullyRestricted"
4774+
],
4775+
"enumDescriptions": [
4776+
"Creation of new objects with Customer-Managed Encryption is not restricted.",
4777+
"Creation of new objects with Customer-Managed Encryption is fully restricted."
4778+
],
4779+
"type": "string"
4780+
}
4781+
},
4782+
"type": "object"
4783+
},
4784+
"customerSuppliedEncryptionEnforcementConfig": {
4785+
"description": "If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.",
4786+
"properties": {
4787+
"effectiveTime": {
4788+
"description": "Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.",
4789+
"format": "date-time",
4790+
"type": "string"
4791+
},
4792+
"restrictionMode": {
4793+
"description": "Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.",
4794+
"enum": [
4795+
"NotRestricted",
4796+
"FullyRestricted"
4797+
],
4798+
"enumDescriptions": [
4799+
"Creation of new objects with Customer-Supplied Encryption is not restricted.",
4800+
"Creation of new objects with Customer-Supplied Encryption is fully restricted."
4801+
],
4802+
"type": "string"
4803+
}
4804+
},
4805+
"type": "object"
4806+
},
47614807
"defaultKmsKeyName": {
47624808
"description": "A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.",
47634809
"type": "string"
4810+
},
4811+
"googleManagedEncryptionEnforcementConfig": {
4812+
"description": "If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.",
4813+
"properties": {
4814+
"effectiveTime": {
4815+
"description": "Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.",
4816+
"format": "date-time",
4817+
"type": "string"
4818+
},
4819+
"restrictionMode": {
4820+
"description": "Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.",
4821+
"enum": [
4822+
"NotRestricted",
4823+
"FullyRestricted"
4824+
],
4825+
"enumDescriptions": [
4826+
"Creation of new objects with Google Managed Encryption is not restricted.",
4827+
"Creation of new objects with Google Managed Encryption is fully restricted."
4828+
],
4829+
"type": "string"
4830+
}
4831+
},
4832+
"type": "object"
47644833
}
47654834
},
47664835
"type": "object"

Src/Generated/Google.Apis.Storage.v1/Google.Apis.Storage.v1.cs

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10225,12 +10225,158 @@ public class CustomPlacementConfigData
1022510225
/// <summary>Encryption configuration for a bucket.</summary>
1022610226
public class EncryptionData
1022710227
{
10228+
/// <summary>
10229+
/// If set, the new objects created in this bucket must comply with this enforcement config. Changing this
10230+
/// has no effect on existing objects; it applies to new objects only. If omitted, the new objects are
10231+
/// allowed to be encrypted with Customer Managed Encryption type by default.
10232+
/// </summary>
10233+
[Newtonsoft.Json.JsonPropertyAttribute("customerManagedEncryptionEnforcementConfig")]
10234+
public virtual CustomerManagedEncryptionEnforcementConfigData CustomerManagedEncryptionEnforcementConfig { get; set; }
10235+
10236+
/// <summary>
10237+
/// If set, the new objects created in this bucket must comply with this enforcement config. Changing this
10238+
/// has no effect on existing objects; it applies to new objects only. If omitted, the new objects are
10239+
/// allowed to be encrypted with Customer Supplied Encryption type by default.
10240+
/// </summary>
10241+
[Newtonsoft.Json.JsonPropertyAttribute("customerSuppliedEncryptionEnforcementConfig")]
10242+
public virtual CustomerSuppliedEncryptionEnforcementConfigData CustomerSuppliedEncryptionEnforcementConfig { get; set; }
10243+
1022810244
/// <summary>
1022910245
/// A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method
1023010246
/// is specified.
1023110247
/// </summary>
1023210248
[Newtonsoft.Json.JsonPropertyAttribute("defaultKmsKeyName")]
1023310249
public virtual string DefaultKmsKeyName { get; set; }
10250+
10251+
/// <summary>
10252+
/// If set, the new objects created in this bucket must comply with this enforcement config. Changing this
10253+
/// has no effect on existing objects; it applies to new objects only. If omitted, the new objects are
10254+
/// allowed to be encrypted with Google Managed Encryption type by default.
10255+
/// </summary>
10256+
[Newtonsoft.Json.JsonPropertyAttribute("googleManagedEncryptionEnforcementConfig")]
10257+
public virtual GoogleManagedEncryptionEnforcementConfigData GoogleManagedEncryptionEnforcementConfig { get; set; }
10258+
10259+
/// <summary>
10260+
/// If set, the new objects created in this bucket must comply with this enforcement config. Changing this
10261+
/// has no effect on existing objects; it applies to new objects only. If omitted, the new objects are
10262+
/// allowed to be encrypted with Customer Managed Encryption type by default.
10263+
/// </summary>
10264+
public class CustomerManagedEncryptionEnforcementConfigData
10265+
{
10266+
/// <summary>
10267+
/// Server-determined value that indicates the time from which configuration was enforced and effective.
10268+
/// This value is in RFC 3339 format.
10269+
/// </summary>
10270+
[Newtonsoft.Json.JsonPropertyAttribute("effectiveTime")]
10271+
public virtual string EffectiveTimeRaw { get; set; }
10272+
10273+
/// <summary>
10274+
/// <seealso cref="System.DateTimeOffset"/> representation of <see cref="EffectiveTimeRaw"/>.
10275+
/// </summary>
10276+
[Newtonsoft.Json.JsonIgnoreAttribute]
10277+
public virtual System.DateTimeOffset? EffectiveTimeDateTimeOffset
10278+
{
10279+
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(EffectiveTimeRaw);
10280+
set => EffectiveTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
10281+
}
10282+
10283+
/// <summary>
10284+
/// <seealso cref="System.DateTime"/> representation of <see cref="EffectiveTimeRaw"/>.
10285+
/// </summary>
10286+
[Newtonsoft.Json.JsonIgnoreAttribute]
10287+
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EffectiveTimeDateTimeOffset instead.")]
10288+
public virtual System.DateTime? EffectiveTime
10289+
{
10290+
get => Google.Apis.Util.Utilities.GetDateTimeFromString(EffectiveTimeRaw);
10291+
set => EffectiveTimeRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
10292+
}
10293+
10294+
/// <summary>Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.</summary>
10295+
[Newtonsoft.Json.JsonPropertyAttribute("restrictionMode")]
10296+
public virtual string RestrictionMode { get; set; }
10297+
}
10298+
10299+
/// <summary>
10300+
/// If set, the new objects created in this bucket must comply with this enforcement config. Changing this
10301+
/// has no effect on existing objects; it applies to new objects only. If omitted, the new objects are
10302+
/// allowed to be encrypted with Customer Supplied Encryption type by default.
10303+
/// </summary>
10304+
public class CustomerSuppliedEncryptionEnforcementConfigData
10305+
{
10306+
/// <summary>
10307+
/// Server-determined value that indicates the time from which configuration was enforced and effective.
10308+
/// This value is in RFC 3339 format.
10309+
/// </summary>
10310+
[Newtonsoft.Json.JsonPropertyAttribute("effectiveTime")]
10311+
public virtual string EffectiveTimeRaw { get; set; }
10312+
10313+
/// <summary>
10314+
/// <seealso cref="System.DateTimeOffset"/> representation of <see cref="EffectiveTimeRaw"/>.
10315+
/// </summary>
10316+
[Newtonsoft.Json.JsonIgnoreAttribute]
10317+
public virtual System.DateTimeOffset? EffectiveTimeDateTimeOffset
10318+
{
10319+
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(EffectiveTimeRaw);
10320+
set => EffectiveTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
10321+
}
10322+
10323+
/// <summary>
10324+
/// <seealso cref="System.DateTime"/> representation of <see cref="EffectiveTimeRaw"/>.
10325+
/// </summary>
10326+
[Newtonsoft.Json.JsonIgnoreAttribute]
10327+
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EffectiveTimeDateTimeOffset instead.")]
10328+
public virtual System.DateTime? EffectiveTime
10329+
{
10330+
get => Google.Apis.Util.Utilities.GetDateTimeFromString(EffectiveTimeRaw);
10331+
set => EffectiveTimeRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
10332+
}
10333+
10334+
/// <summary>
10335+
/// Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
10336+
/// </summary>
10337+
[Newtonsoft.Json.JsonPropertyAttribute("restrictionMode")]
10338+
public virtual string RestrictionMode { get; set; }
10339+
}
10340+
10341+
/// <summary>
10342+
/// If set, the new objects created in this bucket must comply with this enforcement config. Changing this
10343+
/// has no effect on existing objects; it applies to new objects only. If omitted, the new objects are
10344+
/// allowed to be encrypted with Google Managed Encryption type by default.
10345+
/// </summary>
10346+
public class GoogleManagedEncryptionEnforcementConfigData
10347+
{
10348+
/// <summary>
10349+
/// Server-determined value that indicates the time from which configuration was enforced and effective.
10350+
/// This value is in RFC 3339 format.
10351+
/// </summary>
10352+
[Newtonsoft.Json.JsonPropertyAttribute("effectiveTime")]
10353+
public virtual string EffectiveTimeRaw { get; set; }
10354+
10355+
/// <summary>
10356+
/// <seealso cref="System.DateTimeOffset"/> representation of <see cref="EffectiveTimeRaw"/>.
10357+
/// </summary>
10358+
[Newtonsoft.Json.JsonIgnoreAttribute]
10359+
public virtual System.DateTimeOffset? EffectiveTimeDateTimeOffset
10360+
{
10361+
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(EffectiveTimeRaw);
10362+
set => EffectiveTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
10363+
}
10364+
10365+
/// <summary>
10366+
/// <seealso cref="System.DateTime"/> representation of <see cref="EffectiveTimeRaw"/>.
10367+
/// </summary>
10368+
[Newtonsoft.Json.JsonIgnoreAttribute]
10369+
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EffectiveTimeDateTimeOffset instead.")]
10370+
public virtual System.DateTime? EffectiveTime
10371+
{
10372+
get => Google.Apis.Util.Utilities.GetDateTimeFromString(EffectiveTimeRaw);
10373+
set => EffectiveTimeRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
10374+
}
10375+
10376+
/// <summary>Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.</summary>
10377+
[Newtonsoft.Json.JsonPropertyAttribute("restrictionMode")]
10378+
public virtual string RestrictionMode { get; set; }
10379+
}
1023410380
}
1023510381

1023610382
/// <summary>The bucket's hierarchical namespace configuration.</summary>

Src/Generated/Google.Apis.Storage.v1/Google.Apis.Storage.v1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- nupkg information -->
44
<PropertyGroup>
55
<Title>Google.Apis.Storage.v1 Client Library</Title>
6-
<Version>1.70.0.3832</Version>
6+
<Version>1.70.0.3851</Version>
77
<Authors>Google LLC</Authors>
88
<Copyright>Copyright 2025 Google LLC</Copyright>
99
<PackageTags>Google</PackageTags>

0 commit comments

Comments
 (0)