Google Api

This commit is contained in:
Paul Schneider 2017-06-20 02:47:52 +02:00
commit 83f9fc1bd8
123 changed files with 12961 additions and 60 deletions

View file

@ -0,0 +1,25 @@
/*
Copyright 2010 Google Inc
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
http://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.
*/
namespace Google.Apis.Discovery
{
/// <summary>An enumeration of all supported discovery versions.</summary>
public enum DiscoveryVersion
{
/// <summary>Discovery version 1.0.</summary>
Version_1_0,
}
}

View file

@ -0,0 +1,32 @@
/*
Copyright 2011 Google Inc
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
http://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 Google.Apis.Util;
namespace Google.Apis.Discovery
{
/// <summary>
/// Specifies a list of features which can be defined within the discovery document of a service.
/// </summary>
public enum Features
{
/// <summary>
/// If this feature is specified, then the data of a response is encapsulated within a "data" resource.
/// </summary>
[StringValue("dataWrapper")]
LegacyDataResponse,
}
}

View file

@ -0,0 +1,37 @@
/*
Copyright 2010 Google Inc
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
http://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.
*/
namespace Google.Apis.Discovery
{
/// <summary>Represents a parameter for a method.</summary>
public interface IParameter
{
/// <summary>Gets the name of the parameter.</summary>
string Name { get; }
/// <summary>Gets the pattern that this parameter must follow.</summary>
string Pattern { get; }
/// <summary>Gets an indication whether this parameter is optional or required.</summary>
bool IsRequired { get; }
/// <summary>Gets the default value of this parameter.</summary>
string DefaultValue { get; }
/// <summary>Gets the type of the parameter.</summary>
string ParameterType { get; }
}
}

View file

@ -0,0 +1,36 @@
/*
Copyright 2013 Google Inc.
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
http://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.
*/
namespace Google.Apis.Discovery
{
/// <summary>Represents a method's parameter.</summary>
public class Parameter : IParameter
{
/// <inheritdoc/>
public string Name { get; set; }
/// <inheritdoc/>
public string Pattern { get; set; }
/// <inheritdoc/>
public bool IsRequired { get; set; }
/// <inheritdoc/>
public string ParameterType { get; set; }
/// <inheritdoc/>
public string DefaultValue { get; set; }
}
}