Skip to content

Commit

Permalink
feat: Generate Google.Apis.Storage.v1 version 1.68.0.3554
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa authored and jskeet committed Sep 30, 2024
1 parent 823a4da commit 06dfa33
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 3 deletions.
60 changes: 58 additions & 2 deletions DiscoveryJson/storage.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"location": "us-west4"
}
],
"etag": "\"38303531353337323634333935393838333734\"",
"etag": "\"3133363239393031373133303332303839383336\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
Expand Down Expand Up @@ -1079,6 +1079,34 @@
"https://www.googleapis.com/auth/devstorage.full_control"
]
},
"relocate": {
"description": "Initiates a long-running Relocate Bucket operation on the specified bucket.",
"httpMethod": "POST",
"id": "storage.buckets.relocate",
"parameterOrder": [
"bucket"
],
"parameters": {
"bucket": {
"description": "Name of the bucket to be moved.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "b/{bucket}/relocate",
"request": {
"$ref": "RelocateBucketRequest"
},
"response": {
"$ref": "GoogleLongrunningOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.full_control",
"https://www.googleapis.com/auth/devstorage.read_write"
]
},
"restore": {
"description": "Restores a soft-deleted bucket.",
"httpMethod": "POST",
Expand Down Expand Up @@ -4196,7 +4224,7 @@
}
}
},
"revision": "20240916",
"revision": "20240924",
"rootUrl": "https://storage.googleapis.com/",
"schemas": {
"AnywhereCache": {
Expand Down Expand Up @@ -5929,6 +5957,34 @@
},
"type": "object"
},
"RelocateBucketRequest": {
"description": "A Relocate Bucket request.",
"id": "RelocateBucketRequest",
"properties": {
"destinationCustomPlacementConfig": {
"description": "The bucket's new custom placement configuration if relocating to a Custom Dual Region.",
"properties": {
"dataLocations": {
"description": "The list of regional locations in which data is placed.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"destinationLocation": {
"description": "The new location the bucket will be relocated to.",
"type": "string"
},
"validateOnly": {
"description": "If true, validate the operation, but do not actually relocate the bucket.",
"type": "boolean"
}
},
"type": "object"
},
"RewriteResponse": {
"description": "A rewrite response.",
"id": "RewriteResponse",
Expand Down
80 changes: 80 additions & 0 deletions Src/Generated/Google.Apis.Storage.v1/Google.Apis.Storage.v1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2151,6 +2151,59 @@ protected override void InitParameters()
}
}

/// <summary>Initiates a long-running Relocate Bucket operation on the specified bucket.</summary>
/// <param name="body">The body of the request.</param>
/// <param name="bucket">Name of the bucket to be moved.</param>
public virtual RelocateRequest Relocate(Google.Apis.Storage.v1.Data.RelocateBucketRequest body, string bucket)
{
return new RelocateRequest(this.service, body, bucket);
}

/// <summary>Initiates a long-running Relocate Bucket operation on the specified bucket.</summary>
public class RelocateRequest : StorageBaseServiceRequest<Google.Apis.Storage.v1.Data.GoogleLongrunningOperation>
{
/// <summary>Constructs a new Relocate request.</summary>
public RelocateRequest(Google.Apis.Services.IClientService service, Google.Apis.Storage.v1.Data.RelocateBucketRequest body, string bucket) : base(service)
{
Bucket = bucket;
Body = body;
InitParameters();
}

/// <summary>Name of the bucket to be moved.</summary>
[Google.Apis.Util.RequestParameterAttribute("bucket", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Bucket { get; private set; }

/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.Storage.v1.Data.RelocateBucketRequest Body { get; set; }

/// <summary>Returns the body of the request.</summary>
protected override object GetBody() => Body;

/// <summary>Gets the method name.</summary>
public override string MethodName => "relocate";

/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "POST";

/// <summary>Gets the REST path.</summary>
public override string RestPath => "b/{bucket}/relocate";

/// <summary>Initializes Relocate parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("bucket", new Google.Apis.Discovery.Parameter
{
Name = "bucket",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}

/// <summary>Restores a soft-deleted bucket.</summary>
/// <param name="bucket">Name of a bucket.</param>
/// <param name="generation">Generation of a bucket.</param>
Expand Down Expand Up @@ -11714,6 +11767,33 @@ public class BindingsData
}
}

/// <summary>A Relocate Bucket request.</summary>
public class RelocateBucketRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>The bucket's new custom placement configuration if relocating to a Custom Dual Region.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("destinationCustomPlacementConfig")]
public virtual DestinationCustomPlacementConfigData DestinationCustomPlacementConfig { get; set; }

/// <summary>The new location the bucket will be relocated to.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("destinationLocation")]
public virtual string DestinationLocation { get; set; }

/// <summary>If true, validate the operation, but do not actually relocate the bucket.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("validateOnly")]
public virtual System.Nullable<bool> ValidateOnly { get; set; }

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

/// <summary>The bucket's new custom placement configuration if relocating to a Custom Dual Region.</summary>
public class DestinationCustomPlacementConfigData
{
/// <summary>The list of regional locations in which data is placed.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("dataLocations")]
public virtual System.Collections.Generic.IList<string> DataLocations { get; set; }
}
}

/// <summary>A rewrite response.</summary>
public class RewriteResponse : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.Storage.v1 Client Library</Title>
<Version>1.68.0.3546</Version>
<Version>1.68.0.3554</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit 06dfa33

Please sign in to comment.