Skip to content

Commit

Permalink
Add resource name properties to IAM requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Jun 28, 2018
1 parent 0cddffa commit 74a5ba8
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 20 deletions.
50 changes: 30 additions & 20 deletions apis/Google.Cloud.Iam.V1/Google.Cloud.Iam.V1.sln
@@ -1,54 +1,64 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26114.2
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Google.Cloud.Iam.V1", "Google.Cloud.Iam.V1\Google.Cloud.Iam.V1.csproj", "{8BF4C91C-5611-444B-8550-D67DEBAF72F1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.Iam.V1.Tests", "Google.Cloud.Iam.V1.Tests\Google.Cloud.Iam.V1.Tests.csproj", "{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Google.Cloud.Iam.V1.Tests", "Google.Cloud.Iam.V1.Tests\Google.Cloud.Iam.V1.Tests.csproj", "{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.ClientTesting", "..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj", "{33F59057-9298-4578-86CE-D4B92BE41979}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Google.Cloud.ClientTesting", "..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj", "{33F59057-9298-4578-86CE-D4B92BE41979}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Debug|x64.ActiveCfg = Debug|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Debug|x64.Build.0 = Debug|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Debug|x86.ActiveCfg = Debug|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Debug|x86.Build.0 = Debug|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Release|Any CPU.Build.0 = Release|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Release|x64.ActiveCfg = Release|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Release|x64.Build.0 = Release|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Release|x86.ActiveCfg = Release|Any CPU
{8BF4C91C-5611-444B-8550-D67DEBAF72F1}.Release|x86.Build.0 = Release|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x64.ActiveCfg = Debug|x64
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x64.Build.0 = Debug|x64
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x86.ActiveCfg = Debug|x86
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x86.Build.0 = Debug|x86
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x64.ActiveCfg = Debug|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x64.Build.0 = Debug|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x86.ActiveCfg = Debug|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Debug|x86.Build.0 = Debug|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|Any CPU.Build.0 = Release|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x64.ActiveCfg = Release|x64
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x64.Build.0 = Release|x64
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x86.ActiveCfg = Release|x86
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x86.Build.0 = Release|x86
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x64.ActiveCfg = Release|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x64.Build.0 = Release|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x86.ActiveCfg = Release|Any CPU
{00D82DC9-DF5C-4F79-A366-36C12BF3EA9C}.Release|x86.Build.0 = Release|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|Any CPU.Build.0 = Debug|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x64.ActiveCfg = Debug|x64
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x64.Build.0 = Debug|x64
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x86.ActiveCfg = Debug|x86
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x86.Build.0 = Debug|x86
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x64.ActiveCfg = Debug|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x64.Build.0 = Debug|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x86.ActiveCfg = Debug|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Debug|x86.Build.0 = Debug|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|Any CPU.ActiveCfg = Release|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|Any CPU.Build.0 = Release|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x64.ActiveCfg = Release|x64
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x64.Build.0 = Release|x64
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x86.ActiveCfg = Release|x86
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x86.Build.0 = Release|x86
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x64.ActiveCfg = Release|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x64.Build.0 = Release|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x86.ActiveCfg = Release|Any CPU
{33F59057-9298-4578-86CE-D4B92BE41979}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D67A53EA-F2E5-4198-AD61-5DC4A3AA9D52}
EndGlobalSection
EndGlobal
53 changes: 53 additions & 0 deletions apis/Google.Cloud.Iam.V1/Google.Cloud.Iam.V1/ResourceNames.cs
@@ -0,0 +1,53 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using gax = Google.Api.Gax;

namespace Google.Cloud.Iam.V1
{
public partial class SetIamPolicyRequest
{
/// <summary>
/// <see cref="gax::IResourceName"/>-typed view over the <see cref="Resource"/> resource name property.
/// </summary>
public gax::IResourceName ResourceAsResourceName
{
get { return string.IsNullOrEmpty(Resource) ? null : gax::UnknownResourceName.Parse(Resource); }
set { Resource = value != null ? value.ToString() : ""; }
}
}

public partial class GetIamPolicyRequest
{
/// <summary>
/// <see cref="gax::IResourceName"/>-typed view over the <see cref="Resource"/> resource name property.
/// </summary>
public gax::IResourceName ResourceAsResourceName
{
get { return string.IsNullOrEmpty(Resource) ? null : gax::UnknownResourceName.Parse(Resource); }
set { Resource = value != null ? value.ToString() : ""; }
}
}

public partial class TestIamPermissionsRequest
{
/// <summary>
/// <see cref="gax::IResourceName"/>-typed view over the <see cref="Resource"/> resource name property.
/// </summary>
public gax::IResourceName ResourceAsResourceName
{
get { return string.IsNullOrEmpty(Resource) ? null : gax::UnknownResourceName.Parse(Resource); }
set { Resource = value != null ? value.ToString() : ""; }
}
}
}

0 comments on commit 74a5ba8

Please sign in to comment.