Skip to content

Commit

Permalink
docs: Mark the accessApprovalRequests.list method as deprecated
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 645046820

Source-Link: googleapis/googleapis@52630ea

Source-Link: googleapis/googleapis-gen@4dec2d0
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ2xvdWRDb250cm9sc1BhcnRuZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6IjRkZWMyZDBkN2ZmZmRjYzBkNGU3ZmYxZmNiZTE4Y2Q3YjM0ZmNlMDkifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Jun 21, 2024
1 parent fb61eae commit 74dcad9
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public async Task ListAccessApprovalRequestsAsync()
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]/workloads/[WORKLOAD]";
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequestsAsync(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessApprovalRequest item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public async Task ListAccessApprovalRequestsRequestObjectAsync()
OrderBy = "",
};
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequestsAsync(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessApprovalRequest item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public void ListAccessApprovalRequestsRequestObject()
OrderBy = "",
};
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequests(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessApprovalRequest item in response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public async Task ListAccessApprovalRequestsResourceNamesAsync()
// Initialize request argument(s)
WorkloadName parent = WorkloadName.FromOrganizationLocationCustomerWorkload("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequestsAsync(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessApprovalRequest item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public void ListAccessApprovalRequestsResourceNames()
// Initialize request argument(s)
WorkloadName parent = WorkloadName.FromOrganizationLocationCustomerWorkload("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequests(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessApprovalRequest item in response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public void ListAccessApprovalRequests()
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]/workloads/[WORKLOAD]";
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequests(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessApprovalRequest item in response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1834,12 +1834,12 @@
"segments": [
{
"start": 20,
"end": 80,
"end": 82,
"type": "FULL"
},
{
"start": 36,
"end": 78,
"end": 80,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1883,12 +1883,12 @@
"segments": [
{
"start": 20,
"end": 82,
"end": 84,
"type": "FULL"
},
{
"start": 38,
"end": 80,
"end": 82,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1938,12 +1938,12 @@
"segments": [
{
"start": 20,
"end": 75,
"end": 77,
"type": "FULL"
},
{
"start": 36,
"end": 73,
"end": 75,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1994,12 +1994,12 @@
"segments": [
{
"start": 20,
"end": 77,
"end": 79,
"type": "FULL"
},
{
"start": 38,
"end": 75,
"end": 77,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2049,12 +2049,12 @@
"segments": [
{
"start": 20,
"end": 75,
"end": 77,
"type": "FULL"
},
{
"start": 36,
"end": 73,
"end": 75,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2105,12 +2105,12 @@
"segments": [
{
"start": 20,
"end": 77,
"end": 79,
"type": "FULL"
},
{
"start": 38,
"end": 75,
"end": 77,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,9 @@ public void ListAccessApprovalRequestsRequestObject()
OrderBy = "",
};
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequests(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessApprovalRequest item in response)
Expand Down Expand Up @@ -997,7 +999,9 @@ public async Task ListAccessApprovalRequestsRequestObjectAsync()
OrderBy = "",
};
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequestsAsync(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessApprovalRequest item) =>
Expand Down Expand Up @@ -1042,7 +1046,9 @@ public void ListAccessApprovalRequests()
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]/workloads/[WORKLOAD]";
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequests(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessApprovalRequest item in response)
Expand Down Expand Up @@ -1087,7 +1093,9 @@ public async Task ListAccessApprovalRequestsAsync()
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]/workloads/[WORKLOAD]";
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequestsAsync(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessApprovalRequest item) =>
Expand Down Expand Up @@ -1132,7 +1140,9 @@ public void ListAccessApprovalRequestsResourceNames()
// Initialize request argument(s)
WorkloadName parent = WorkloadName.FromOrganizationLocationCustomerWorkload("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequests(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessApprovalRequest item in response)
Expand Down Expand Up @@ -1177,7 +1187,9 @@ public async Task ListAccessApprovalRequestsResourceNamesAsync()
// Initialize request argument(s)
WorkloadName parent = WorkloadName.FromOrganizationLocationCustomerWorkload("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> response = cloudControlsPartnerCoreClient.ListAccessApprovalRequestsAsync(parent);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessApprovalRequest item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1034,25 +1034,30 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
GetPartnerPermissionsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public virtual gax::PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequests(ListAccessApprovalRequestsRequest request, gaxgrpc::CallSettings callSettings = null) =>
throw new sys::NotImplementedException();

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable asynchronous sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public virtual gax::PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequestsAsync(ListAccessApprovalRequestsRequest request, gaxgrpc::CallSettings callSettings = null) =>
throw new sys::NotImplementedException();

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="parent">
/// Required. Parent resource
Expand All @@ -1069,6 +1074,7 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public virtual gax::PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequests(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
ListAccessApprovalRequests(new ListAccessApprovalRequestsRequest
{
Expand All @@ -1078,7 +1084,8 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
}, callSettings);

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="parent">
/// Required. Parent resource
Expand All @@ -1095,6 +1102,7 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable asynchronous sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public virtual gax::PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequestsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
ListAccessApprovalRequestsAsync(new ListAccessApprovalRequestsRequest
{
Expand All @@ -1104,7 +1112,8 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
}, callSettings);

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="parent">
/// Required. Parent resource
Expand All @@ -1121,6 +1130,7 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public virtual gax::PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequests(WorkloadName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
ListAccessApprovalRequests(new ListAccessApprovalRequestsRequest
{
Expand All @@ -1130,7 +1140,8 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
}, callSettings);

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="parent">
/// Required. Parent resource
Expand All @@ -1147,6 +1158,7 @@ public virtual PartnerPermissions GetPartnerPermissions(PartnerPermissionsName n
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable asynchronous sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public virtual gax::PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequestsAsync(WorkloadName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
ListAccessApprovalRequestsAsync(new ListAccessApprovalRequestsRequest
{
Expand Down Expand Up @@ -1325,7 +1337,9 @@ public CloudControlsPartnerCoreClientImpl(CloudControlsPartnerCore.CloudControls
_callGetPartnerPermissions = clientHelper.BuildApiCall<GetPartnerPermissionsRequest, PartnerPermissions>("GetPartnerPermissions", grpcClient.GetPartnerPermissionsAsync, grpcClient.GetPartnerPermissions, effectiveSettings.GetPartnerPermissionsSettings).WithGoogleRequestParam("name", request => request.Name);
Modify_ApiCall(ref _callGetPartnerPermissions);
Modify_GetPartnerPermissionsApiCall(ref _callGetPartnerPermissions);
#pragma warning disable CS0612
_callListAccessApprovalRequests = clientHelper.BuildApiCall<ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse>("ListAccessApprovalRequests", grpcClient.ListAccessApprovalRequestsAsync, grpcClient.ListAccessApprovalRequests, effectiveSettings.ListAccessApprovalRequestsSettings).WithGoogleRequestParam("parent", request => request.Parent);
#pragma warning restore CS0612
Modify_ApiCall(ref _callListAccessApprovalRequests);
Modify_ListAccessApprovalRequestsApiCall(ref _callListAccessApprovalRequests);
_callGetPartner = clientHelper.BuildApiCall<GetPartnerRequest, Partner>("GetPartner", grpcClient.GetPartnerAsync, grpcClient.GetPartner, effectiveSettings.GetPartnerSettings).WithGoogleRequestParam("name", request => request.Name);
Expand Down Expand Up @@ -1518,23 +1532,27 @@ public override PartnerPermissions GetPartnerPermissions(GetPartnerPermissionsRe
}

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public override gax::PagedEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequests(ListAccessApprovalRequestsRequest request, gaxgrpc::CallSettings callSettings = null)
{
Modify_ListAccessApprovalRequestsRequest(ref request, ref callSettings);
return new gaxgrpc::GrpcPagedEnumerable<ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest>(_callListAccessApprovalRequests, request, callSettings);
}

/// <summary>
/// Lists access requests associated with a workload
/// Deprecated: Only returns access approval requests directly associated with
/// an assured workload folder.
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A pageable asynchronous sequence of <see cref="AccessApprovalRequest"/> resources.</returns>
[sys::ObsoleteAttribute]
public override gax::PagedAsyncEnumerable<ListAccessApprovalRequestsResponse, AccessApprovalRequest> ListAccessApprovalRequestsAsync(ListAccessApprovalRequestsRequest request, gaxgrpc::CallSettings callSettings = null)
{
Modify_ListAccessApprovalRequestsRequest(ref request, ref callSettings);
Expand Down
Loading

0 comments on commit 74dcad9

Please sign in to comment.