// Copyright 2025 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.
// Generated code. DO NOT EDIT!
namespace Google.Apis.APIhub.v1
{
/// The APIhub Service.
public class APIhubService : Google.Apis.Services.BaseClientService
{
/// The API version.
public const string Version = "v1";
/// The discovery version used to generate this service.
public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0;
/// Constructs a new service.
public APIhubService() : this(new Google.Apis.Services.BaseClientService.Initializer())
{
}
/// Constructs a new service.
/// The service initializer.
public APIhubService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer)
{
Projects = new ProjectsResource(this);
BaseUri = GetEffectiveUri(BaseUriOverride, "https://apihub.googleapis.com/");
BatchUri = GetEffectiveUri(null, "https://apihub.googleapis.com/batch");
}
/// Gets the service supported features.
public override System.Collections.Generic.IList Features => new string[0];
/// Gets the service name.
public override string Name => "apihub";
/// Gets the service base URI.
public override string BaseUri { get; }
/// Gets the service base path.
public override string BasePath => "";
/// Gets the batch base URI; null if unspecified.
public override string BatchUri { get; }
/// Gets the batch base path; null if unspecified.
public override string BatchPath => "batch";
/// Available OAuth 2.0 scopes for use with the API hub API.
public class Scope
{
///
/// See, edit, configure, and delete your Google Cloud data and see the email address for your Google
/// Account.
///
public static string CloudPlatform = "https://www.googleapis.com/auth/cloud-platform";
}
/// Available OAuth 2.0 scope constants for use with the API hub API.
public static class ScopeConstants
{
///
/// See, edit, configure, and delete your Google Cloud data and see the email address for your Google
/// Account.
///
public const string CloudPlatform = "https://www.googleapis.com/auth/cloud-platform";
}
/// Gets the Projects resource.
public virtual ProjectsResource Projects { get; }
}
/// A base abstract class for APIhub requests.
public abstract class APIhubBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest
{
/// Constructs a new APIhubBaseServiceRequest instance.
protected APIhubBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service)
{
}
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports. Required
/// unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a
/// user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Initializes APIhub parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("$.xgafv", new Google.Apis.Discovery.Parameter
{
Name = "$.xgafv",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("access_token", new Google.Apis.Discovery.Parameter
{
Name = "access_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter
{
Name = "alt",
IsRequired = false,
ParameterType = "query",
DefaultValue = "json",
Pattern = null,
});
RequestParameters.Add("callback", new Google.Apis.Discovery.Parameter
{
Name = "callback",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter
{
Name = "fields",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("key", new Google.Apis.Discovery.Parameter
{
Name = "key",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter
{
Name = "oauth_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter
{
Name = "prettyPrint",
IsRequired = false,
ParameterType = "query",
DefaultValue = "true",
Pattern = null,
});
RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter
{
Name = "quotaUser",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("uploadType", new Google.Apis.Discovery.Parameter
{
Name = "uploadType",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("upload_protocol", new Google.Apis.Discovery.Parameter
{
Name = "upload_protocol",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// The "projects" collection of methods.
public class ProjectsResource
{
private const string Resource = "projects";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ProjectsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Locations = new LocationsResource(service);
}
/// Gets the Locations resource.
public virtual LocationsResource Locations { get; }
/// The "locations" collection of methods.
public class LocationsResource
{
private const string Resource = "locations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public LocationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Addons = new AddonsResource(service);
ApiHubInstances = new ApiHubInstancesResource(service);
Apis = new ApisResource(service);
Attributes = new AttributesResource(service);
Curations = new CurationsResource(service);
Dependencies = new DependenciesResource(service);
Deployments = new DeploymentsResource(service);
DiscoveredApiObservations = new DiscoveredApiObservationsResource(service);
ExternalApis = new ExternalApisResource(service);
HostProjectRegistrations = new HostProjectRegistrationsResource(service);
Operations = new OperationsResource(service);
Plugins = new PluginsResource(service);
RuntimeProjectAttachments = new RuntimeProjectAttachmentsResource(service);
}
/// Gets the Addons resource.
public virtual AddonsResource Addons { get; }
/// The "addons" collection of methods.
public class AddonsResource
{
private const string Resource = "addons";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public AddonsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Get an addon.
///
/// Required. The name of the addon to get. Format:
/// `projects/{project}/locations/{location}/addons/{addon}`.
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get an addon.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the addon to get. Format:
/// `projects/{project}/locations/{location}/addons/{addon}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/addons/[^/]+$",
});
}
}
/// List addons.
///
/// Required. The parent resource where this addon will be created. Format:
/// `projects/{project}/locations/{location}`.
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List addons.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent resource where this addon will be created. Format:
/// `projects/{project}/locations/{location}`.
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of addons. The only supported filter is
/// `plugin_instance_name`. It can be used to filter addons that are enabled for a given plugin
/// instance. The format of the filter is `plugin_instance_name =
/// "projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}"`.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of hub addons to return. The service may return fewer than this
/// value. If unspecified, at most 50 hub addons will be returned. The maximum value is 1000; values
/// above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListAddons` call. Provide this to retrieve the
/// subsequent page. When paginating, all other parameters (except page_size) provided to
/// `ListAddons` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/addons";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves
/// the addon into an updating state until the long-running operation succeeds.
///
/// The body of the request.
///
/// Required. The name of the addon for which the config is to be managed. Format:
/// `projects/{project}/locations/{location}/addons/{addon}`.
///
public virtual ManageConfigRequest ManageConfig(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ManageAddonConfigRequest body, string name)
{
return new ManageConfigRequest(this.service, body, name);
}
///
/// Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves
/// the addon into an updating state until the long-running operation succeeds.
///
public class ManageConfigRequest : APIhubBaseServiceRequest
{
/// Constructs a new ManageConfig request.
public ManageConfigRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ManageAddonConfigRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the addon for which the config is to be managed. Format:
/// `projects/{project}/locations/{location}/addons/{addon}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ManageAddonConfigRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "manageConfig";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:manageConfig";
/// Initializes ManageConfig parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/addons/[^/]+$",
});
}
}
}
/// Gets the ApiHubInstances resource.
public virtual ApiHubInstancesResource ApiHubInstances { get; }
/// The "apiHubInstances" collection of methods.
public class ApiHubInstancesResource
{
private const string Resource = "apiHubInstances";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ApiHubInstancesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Provisions instance resources for the API Hub.
/// The body of the request.
///
/// Required. The parent resource for the Api Hub instance resource. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiHubInstance body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Provisions instance resources for the API Hub.
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiHubInstance body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the Api Hub instance resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the
/// parent resource. If the field is not provided, system generated id will be used. This value
/// should be 4-40 characters, and valid characters are `/a-z[0-9]-_/`.
///
[Google.Apis.Util.RequestParameterAttribute("apiHubInstanceId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ApiHubInstanceId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiHubInstance Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/apiHubInstances";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("apiHubInstanceId", new Google.Apis.Discovery.Parameter
{
Name = "apiHubInstanceId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all
/// associated runtime project attachments and the host project registration.
///
///
/// Required. The name of the Api Hub instance to delete. Format:
/// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all
/// associated runtime project attachments and the host project registration.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the Api Hub instance to delete. Format:
/// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$",
});
}
}
/// Gets details of a single API Hub instance.
///
/// Required. The name of the Api Hub instance to retrieve. Format:
/// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Gets details of a single API Hub instance.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the Api Hub instance to retrieve. Format:
/// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$",
});
}
}
///
/// Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance
/// for a GCP project across all locations.
///
///
/// Required. There will always be only one Api Hub instance for a GCP project across all locations. The
/// parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}`
///
public virtual LookupRequest Lookup(string parent)
{
return new LookupRequest(this.service, parent);
}
///
/// Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance
/// for a GCP project across all locations.
///
public class LookupRequest : APIhubBaseServiceRequest
{
/// Constructs a new Lookup request.
public LookupRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. There will always be only one Api Hub instance for a GCP project across all locations.
/// The parent resource for the Api Hub instance resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// Gets the method name.
public override string MethodName => "lookup";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/apiHubInstances:lookup";
/// Initializes Lookup parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
}
}
}
/// Gets the Apis resource.
public virtual ApisResource Apis { get; }
/// The "apis" collection of methods.
public class ApisResource
{
private const string Resource = "apis";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ApisResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Versions = new VersionsResource(service);
}
/// Gets the Versions resource.
public virtual VersionsResource Versions { get; }
/// The "versions" collection of methods.
public class VersionsResource
{
private const string Resource = "versions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public VersionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Definitions = new DefinitionsResource(service);
Operations = new OperationsResource(service);
Specs = new SpecsResource(service);
}
/// Gets the Definitions resource.
public virtual DefinitionsResource Definitions { get; }
/// The "definitions" collection of methods.
public class DefinitionsResource
{
private const string Resource = "definitions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DefinitionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Get details about a definition in an API version.
///
/// Required. The name of the definition to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get details about a definition in an API version.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the definition to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/definitions/[^/]+$",
});
}
}
}
/// Gets the Operations resource.
public virtual OperationsResource Operations { get; }
/// The "operations" collection of methods.
public class OperationsResource
{
private const string Resource = "operations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public OperationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Create an apiOperation in an API version. An apiOperation can be created only if the version
/// has no apiOperations which were created by parsing a spec.
///
/// The body of the request.
///
/// Required. The parent resource for the operation resource. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiOperation body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create an apiOperation in an API version. An apiOperation can be created only if the version
/// has no apiOperations which were created by parsing a spec.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiOperation body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the operation resource. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the operation resource, which will become the final
/// component of the operation's resource name. This field is optional. * If provided, the
/// same will be used. The service will throw an error if the specified id is already used
/// by another operation resource in the API hub. * If not provided, a system generated id
/// will be used. This value should be 4-500 characters, overall resource name which will be
/// of format
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
/// its length is limited to 700 characters, and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("apiOperationId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ApiOperationId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiOperation Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/operations";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
RequestParameters.Add("apiOperationId", new Google.Apis.Discovery.Parameter
{
Name = "apiOperationId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete an operation in an API version and we can delete only the operations created via
/// create API. If the operation was created by parsing the spec, then it can be deleted by
/// editing or deleting the spec.
///
///
/// Required. The name of the operation resource to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete an operation in an API version and we can delete only the operations created via
/// create API. If the operation was created by parsing the spec, then it can be deleted by
/// editing or deleting the spec.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the operation resource to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/operations/[^/]+$",
});
}
}
/// Get details about a particular operation in API version.
///
/// Required. The name of the operation to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get details about a particular operation in API version.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the operation to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/operations/[^/]+$",
});
}
}
/// List operations in an API version.
///
/// Required. The parent which owns this collection of operations i.e., the API version. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List operations in an API version.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent which owns this collection of operations i.e., the API version.
/// Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of ApiOperations. A filter expression
/// consists of a field name, a comparison operator, and a value for filtering. The value
/// must be a string or a boolean. The comparison operator must be one of: `<`,
/// `>` or `=`. Filters are not case sensitive. The following fields in the
/// `ApiOperation` are eligible for filtering: * `name` - The ApiOperation resource name.
/// Allowed comparison operators: `=`. * `details.http_operation.path.path` - The http
/// operation's complete path relative to server endpoint. Allowed comparison operators:
/// `=`. * `details.http_operation.method` - The http operation method type. Allowed
/// comparison operators: `=`. * `details.deprecated` - Indicates if the ApiOperation is
/// deprecated. Allowed values are True / False indicating the deprycation status of the
/// ApiOperation. Allowed comparison operators: `=`. * `create_time` - The time at which the
/// ApiOperation was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators:
/// `>` and `<`. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of
/// the user defined enum attribute associated with the Resource. Allowed comparison
/// operator is `:`. Here user-defined-attribute-enum-id is a placeholder that can be
/// replaced with any user defined enum attribute name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed
/// value display name of the user defined enum attribute associated with the Resource.
/// Allowed comparison operator is `:`. Here user-defined-attribute-enum-display-name is a
/// placeholder that can be replaced with any user defined enum attribute enum name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.string_values.values` - The allowed value of the
/// user defined string attribute associated with the Resource. Allowed comparison operator
/// is `:`. Here user-defined-attribute-string is a placeholder that can be replaced with
/// any user defined string attribute name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user
/// defined JSON attribute associated with the Resource. Allowed comparison operator is `:`.
/// Here user-defined-attribute-json is a placeholder that can be replaced with any user
/// defined JSON attribute name. Expressions are combined with either `AND` logic operator
/// or `OR` logical operator but not both of them together i.e. only one of the `AND` or
/// `OR` operator can be used throughout the filter string and both the operators cannot be
/// used together. No other logical operators are supported. At most three filter fields are
/// allowed in the filter string and if provided more than that then `INVALID_ARGUMENT`
/// error is returned by the API. Here are a few examples: * `details.deprecated = True` -
/// The ApiOperation is deprecated. * `details.http_operation.method = GET AND create_time
/// < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` -
/// The method of the http operation of the ApiOperation is _GET_ and the spec was created
/// before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. *
/// `details.http_operation.method = GET OR details.http_operation.method = POST`. - The
/// http operation of the method of ApiOperation is _GET_ or _POST_. * `details.deprecated =
/// True AND attributes.projects/test-project-id/locations/test-location-id/
/// attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values: test` - The filter
/// string specifies that the ApiOperation is deprecated and the value of the user defined
/// attribute of type string is _test_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of operations to return. The service may return fewer than
/// this value. If unspecified, at most 50 operations will be returned. The maximum value is
/// 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListApiOperations` call. Provide this
/// to retrieve the subsequent page. When paginating, all other parameters (except
/// page_size) provided to `ListApiOperations` must match the call that provided the page
/// token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/operations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update an operation in an API version. The following fields in the ApiOperation resource can
/// be updated: * details.description * details.documentation * details.http_operation.path *
/// details.http_operation.method * details.deprecated * attributes * details.mcp_tool.title *
/// details.mcp_tool.description * details.mcp_tool.input_schema *
/// details.mcp_tool.output_schema * details.input_schema * details.output_schema *
/// details.mcp_tool.annotations.title * details.mcp_tool.annotations.read_only_hint *
/// details.mcp_tool.annotations.destructive_hint * details.mcp_tool.annotations.idempotent_hint
/// * details.mcp_tool.annotations.open_world_hint *
/// details.mcp_tool.annotations.additional_hints The update_mask should be used to specify the
/// fields being updated. An operation can be updated only if the operation was created via
/// CreateApiOperation API. If the operation was created by parsing the spec, then it can be
/// edited by updating the spec.
///
/// The body of the request.
///
/// Identifier. The name of the operation. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiOperation body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update an operation in an API version. The following fields in the ApiOperation resource can
/// be updated: * details.description * details.documentation * details.http_operation.path *
/// details.http_operation.method * details.deprecated * attributes * details.mcp_tool.title *
/// details.mcp_tool.description * details.mcp_tool.input_schema *
/// details.mcp_tool.output_schema * details.input_schema * details.output_schema *
/// details.mcp_tool.annotations.title * details.mcp_tool.annotations.read_only_hint *
/// details.mcp_tool.annotations.destructive_hint * details.mcp_tool.annotations.idempotent_hint
/// * details.mcp_tool.annotations.open_world_hint *
/// details.mcp_tool.annotations.additional_hints The update_mask should be used to specify the
/// fields being updated. An operation can be updated only if the operation was created via
/// CreateApiOperation API. If the operation was created by parsing the spec, then it can be
/// edited by updating the spec.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiOperation body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the operation. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ApiOperation Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/operations/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Specs resource.
public virtual SpecsResource Specs { get; }
/// The "specs" collection of methods.
public class SpecsResource
{
private const string Resource = "specs";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public SpecsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Add a spec to an API version in the API hub. Multiple specs can be added to an API version.
/// Note, while adding a spec, at least one of `contents` or `source_uri` must be provided. If
/// `contents` is provided, then `spec_type` must also be provided. On adding a spec with
/// contents to the version, the operations present in it will be added to the version.Note that
/// the file contents in the spec should be of the same type as defined in the
/// `projects/{project}/locations/{location}/attributes/system-spec-type` attribute associated
/// with spec resource. Note that specs of various types can be uploaded, however parsing of
/// details is supported for OpenAPI spec currently. In order to access the information parsed
/// from the spec, use the GetSpec method. In order to access the raw contents for a particular
/// spec, use the GetSpecContents method. In order to access the operations parsed from the
/// spec, use the ListAPIOperations method.
///
/// The body of the request.
///
/// Required. The parent resource for Spec. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Spec body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Add a spec to an API version in the API hub. Multiple specs can be added to an API version.
/// Note, while adding a spec, at least one of `contents` or `source_uri` must be provided. If
/// `contents` is provided, then `spec_type` must also be provided. On adding a spec with
/// contents to the version, the operations present in it will be added to the version.Note that
/// the file contents in the spec should be of the same type as defined in the
/// `projects/{project}/locations/{location}/attributes/system-spec-type` attribute associated
/// with spec resource. Note that specs of various types can be uploaded, however parsing of
/// details is supported for OpenAPI spec currently. In order to access the information parsed
/// from the spec, use the GetSpec method. In order to access the raw contents for a particular
/// spec, use the GetSpecContents method. In order to access the operations parsed from the
/// spec, use the ListAPIOperations method.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Spec body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for Spec. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the spec, which will become the final component of the
/// spec's resource name. This field is optional. * If provided, the same will be used. The
/// service will throw an error if the specified id is already used by another spec in the
/// API resource. * If not provided, a system generated id will be used. This value should
/// be 4-500 characters, overall resource name which will be of format
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`,
/// its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("specId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string SpecId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Spec Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/specs";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
RequestParameters.Add("specId", new Google.Apis.Discovery.Parameter
{
Name = "specId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete a spec. Deleting a spec will also delete the associated operations from the version.
///
///
/// Required. The name of the spec to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete a spec. Deleting a spec will also delete the associated operations from the version.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the spec to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+$",
});
}
}
/// Fetch additional spec content.
///
/// Required. The name of the spec whose contents need to be retrieved. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
public virtual FetchAdditionalSpecContentRequest FetchAdditionalSpecContent(string name)
{
return new FetchAdditionalSpecContentRequest(this.service, name);
}
/// Fetch additional spec content.
public class FetchAdditionalSpecContentRequest : APIhubBaseServiceRequest
{
/// Constructs a new FetchAdditionalSpecContent request.
public FetchAdditionalSpecContentRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the spec whose contents need to be retrieved. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Optional. The type of the spec contents to be retrieved.
[Google.Apis.Util.RequestParameterAttribute("specContentType", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable SpecContentType { get; set; }
/// Optional. The type of the spec contents to be retrieved.
public enum SpecContentTypeEnum
{
///
/// Unspecified spec content type. Defaults to spec content uploaded by the user.
///
[Google.Apis.Util.StringValueAttribute("SPEC_CONTENT_TYPE_UNSPECIFIED")]
SPECCONTENTTYPEUNSPECIFIED = 0,
/// The spec content type for boosted spec.
[Google.Apis.Util.StringValueAttribute("BOOSTED_SPEC_CONTENT")]
BOOSTEDSPECCONTENT = 1,
///
/// The spec content type for OpenAPI spec. This enum is used for OpenAPI specs ingested
/// via APIGEE X Gateway.
///
[Google.Apis.Util.StringValueAttribute("GATEWAY_OPEN_API_SPEC")]
GATEWAYOPENAPISPEC = 2,
}
/// Gets the method name.
public override string MethodName => "fetchAdditionalSpecContent";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:fetchAdditionalSpecContent";
/// Initializes FetchAdditionalSpecContent parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+$",
});
RequestParameters.Add("specContentType", new Google.Apis.Discovery.Parameter
{
Name = "specContentType",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Get details about the information parsed from a spec. Note that this method does not return
/// the raw spec contents. Use GetSpecContents method to retrieve the same.
///
///
/// Required. The name of the spec to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
///
/// Get details about the information parsed from a spec. Note that this method does not return
/// the raw spec contents. Use GetSpecContents method to retrieve the same.
///
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the spec to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+$",
});
}
}
/// Get spec contents.
///
/// Required. The name of the spec whose contents need to be retrieved. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
public virtual GetContentsRequest GetContents(string name)
{
return new GetContentsRequest(this.service, name);
}
/// Get spec contents.
public class GetContentsRequest : APIhubBaseServiceRequest
{
/// Constructs a new GetContents request.
public GetContentsRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the spec whose contents need to be retrieved. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "getContents";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:contents";
/// Initializes GetContents parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+$",
});
}
}
///
/// Lints the requested spec and updates the corresponding API Spec with the lint response. This
/// lint response will be available in all subsequent Get and List Spec calls to Core service.
///
/// The body of the request.
///
/// Required. The name of the spec to be linted. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
public virtual LintRequest Lint(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1LintSpecRequest body, string name)
{
return new LintRequest(this.service, body, name);
}
///
/// Lints the requested spec and updates the corresponding API Spec with the lint response. This
/// lint response will be available in all subsequent Get and List Spec calls to Core service.
///
public class LintRequest : APIhubBaseServiceRequest
{
/// Constructs a new Lint request.
public LintRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1LintSpecRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the spec to be linted. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1LintSpecRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "lint";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:lint";
/// Initializes Lint parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+$",
});
}
}
/// List specs corresponding to a particular API resource.
///
/// Required. The parent, which owns this collection of specs. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List specs corresponding to a particular API resource.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of specs. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of Specs. A filter expression consists of
/// a field name, a comparison operator, and a value for filtering. The value must be a
/// string. The comparison operator must be one of: `<`, `>`, `:` or `=`.
/// Filters are not case sensitive. The following fields in the `Spec` are eligible for
/// filtering: * `display_name` - The display name of the Spec. Allowed comparison
/// operators: `=`. * `create_time` - The time at which the Spec was created. The value
/// should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed
/// comparison operators: `>` and `<`. * `spec_type.enum_values.values.id` -
/// The allowed value id of the spec_type attribute associated with the Spec. Allowed
/// comparison operators: `:`. * `spec_type.enum_values.values.display_name` - The allowed
/// value display name of the spec_type attribute associated with the Spec. Allowed
/// comparison operators: `:`. * `lint_response.json_values.values` - The json value of the
/// lint_response attribute associated with the Spec. Allowed comparison operators: `:`. *
/// `mime_type` - The MIME type of the Spec. Allowed comparison operators: `=`. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of
/// the user defined enum attribute associated with the Resource. Allowed comparison
/// operator is `:`. Here user-defined-attribute-enum-id is a placeholder that can be
/// replaced with any user defined enum attribute name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed
/// value display name of the user defined enum attribute associated with the Resource.
/// Allowed comparison operator is `:`. Here user-defined-attribute-enum-display-name is a
/// placeholder that can be replaced with any user defined enum attribute enum name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.string_values.values` - The allowed value of the
/// user defined string attribute associated with the Resource. Allowed comparison operator
/// is `:`. Here user-defined-attribute-string is a placeholder that can be replaced with
/// any user defined string attribute name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user
/// defined JSON attribute associated with the Resource. Allowed comparison operator is `:`.
/// Here user-defined-attribute-json is a placeholder that can be replaced with any user
/// defined JSON attribute name. Expressions are combined with either `AND` logic operator
/// or `OR` logical operator but not both of them together i.e. only one of the `AND` or
/// `OR` operator can be used throughout the filter string and both the operators cannot be
/// used together. No other logical operators are supported. At most three filter fields are
/// allowed in the filter string and if provided more than that then `INVALID_ARGUMENT`
/// error is returned by the API. Here are a few examples: *
/// `spec_type.enum_values.values.id: rest-id` - The filter string specifies that the id of
/// the allowed value associated with the spec_type attribute is _rest-id_. *
/// `spec_type.enum_values.values.display_name: \"Rest Display Name\"` - The filter string
/// specifies that the display name of the allowed value associated with the spec_type
/// attribute is `Rest Display Name`. * `spec_type.enum_values.values.id: grpc-id AND
/// create_time < \"2021-08-15T14:50:00Z\" AND create_time >
/// \"2021-08-10T12:00:00Z\"` - The id of the allowed value associated with the spec_type
/// attribute is _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and
/// after _2021-08-10 12:00:00 UTC_. * `spec_type.enum_values.values.id: rest-id OR
/// spec_type.enum_values.values.id: grpc-id` - The id of the allowed value associated with
/// the spec_type attribute is _rest-id_ or _grpc-id_. * `spec_type.enum_values.values.id:
/// rest-id AND attributes.projects/test-project-id/locations/test-location-id/
/// attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id: test` - The
/// filter string specifies that the id of the allowed value associated with the spec_type
/// attribute is _rest-id_ and the id of the allowed value associated with the user defined
/// attribute of type enum is _test_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of specs to return. The service may return fewer than this
/// value. If unspecified, at most 50 specs will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListSpecs` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListSpecs` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/specs";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update spec. The following fields in the spec can be updated: * display_name * source_uri *
/// lint_response * attributes * contents * spec_type In case of an OAS spec, updating spec
/// contents can lead to: 1. Creation, deletion and update of operations. 2. Creation, deletion
/// and update of definitions. 3. Update of other info parsed out from the new spec. In case of
/// contents or source_uri being present in update mask, spec_type must also be present. Also,
/// spec_type can not be present in update mask if contents or source_uri is not present. The
/// update_mask should be used to specify the fields being updated.
///
/// The body of the request.
///
/// Identifier. The name of the spec. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Spec body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update spec. The following fields in the spec can be updated: * display_name * source_uri *
/// lint_response * attributes * contents * spec_type In case of an OAS spec, updating spec
/// contents can lead to: 1. Creation, deletion and update of operations. 2. Creation, deletion
/// and update of definitions. 3. Update of other info parsed out from the new spec. In case of
/// contents or source_uri being present in update mask, spec_type must also be present. Also,
/// spec_type can not be present in update mask if contents or source_uri is not present. The
/// update_mask should be used to specify the fields being updated.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Spec body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the spec. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Spec Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Create an API version for an API resource in the API hub.
/// The body of the request.
///
/// Required. The parent resource for API version. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Version body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Create an API version for an API resource in the API hub.
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Version body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for API version. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the API version, which will become the final component of the
/// version's resource name. This field is optional. * If provided, the same will be used. The
/// service will throw an error if the specified id is already used by another version in the
/// API resource. * If not provided, a system generated id will be used. This value should be
/// 4-500 characters, overall resource name which will be of format
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`, its length is
/// limited to 700 characters and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("versionId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string VersionId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Version Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/versions";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+$",
});
RequestParameters.Add("versionId", new Google.Apis.Discovery.Parameter
{
Name = "versionId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete an API version. Version can only be deleted if all underlying specs, operations,
/// definitions and linked deployments are deleted.
///
///
/// Required. The name of the version to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete an API version. Version can only be deleted if all underlying specs, operations,
/// definitions and linked deployments are deleted.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the version to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
///
/// Optional. If set to true, any specs from this version will also be deleted. Otherwise, the
/// request will only work if the version has no specs.
///
[Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Force { get; set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
RequestParameters.Add("force", new Google.Apis.Discovery.Parameter
{
Name = "force",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Get details about the API version of an API resource. This will include information about the
/// specs and operations present in the API version as well as the deployments linked to it.
///
///
/// Required. The name of the API version to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
///
/// Get details about the API version of an API resource. This will include information about the
/// specs and operations present in the API version as well as the deployments linked to it.
///
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the API version to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
}
}
/// List API versions of an API resource in the API hub.
///
/// Required. The parent which owns this collection of API versions i.e., the API resource Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List API versions of an API resource in the API hub.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent which owns this collection of API versions i.e., the API resource
/// Format: `projects/{project}/locations/{location}/apis/{api}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of Versions. A filter expression consists of a
/// field name, a comparison operator, and a value for filtering. The value must be a string, a
/// number, or a boolean. The comparison operator must be one of: `<`, `>` or `=`.
/// Filters are not case sensitive. The following fields in the `Version` are eligible for
/// filtering: * `display_name` - The display name of the Version. Allowed comparison operators:
/// `=`. * `create_time` - The time at which the Version was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators:
/// `>` and `<`. * `lifecycle.enum_values.values.id` - The allowed value id of the
/// lifecycle attribute associated with the Version. Allowed comparison operators: `:`. *
/// `lifecycle.enum_values.values.display_name` - The allowed value display name of the
/// lifecycle attribute associated with the Version. Allowed comparison operators: `:`. *
/// `compliance.enum_values.values.id` - The allowed value id of the compliances attribute
/// associated with the Version. Allowed comparison operators: `:`. *
/// `compliance.enum_values.values.display_name` - The allowed value display name of the
/// compliances attribute associated with the Version. Allowed comparison operators: `:`. *
/// `accreditation.enum_values.values.id` - The allowed value id of the accreditations attribute
/// associated with the Version. Allowed comparison operators: `:`. *
/// `accreditation.enum_values.values.display_name` - The allowed value display name of the
/// accreditations attribute associated with the Version. Allowed comparison operators: `:`. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of the
/// user defined enum attribute associated with the Resource. Allowed comparison operator is
/// `:`. Here user-defined-attribute-enum-id is a placeholder that can be replaced with any user
/// defined enum attribute name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed value
/// display name of the user defined enum attribute associated with the Resource. Allowed
/// comparison operator is `:`. Here user-defined-attribute-enum-display-name is a placeholder
/// that can be replaced with any user defined enum attribute enum name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.string_values.values` - The allowed value of the user
/// defined string attribute associated with the Resource. Allowed comparison operator is `:`.
/// Here user-defined-attribute-string is a placeholder that can be replaced with any user
/// defined string attribute name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user
/// defined JSON attribute associated with the Resource. Allowed comparison operator is `:`.
/// Here user-defined-attribute-json is a placeholder that can be replaced with any user defined
/// JSON attribute name. Expressions are combined with either `AND` logic operator or `OR`
/// logical operator but not both of them together i.e. only one of the `AND` or `OR` operator
/// can be used throughout the filter string and both the operators cannot be used together. No
/// other logical operators are supported. At most three filter fields are allowed in the filter
/// string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API.
/// Here are a few examples: * `lifecycle.enum_values.values.id: preview-id` - The filter string
/// specifies that the id of the allowed value associated with the lifecycle attribute of the
/// Version is _preview-id_. * `lifecycle.enum_values.values.display_name: \"Preview Display
/// Name\"` - The filter string specifies that the display name of the allowed value associated
/// with the lifecycle attribute of the Version is `Preview Display Name`. *
/// `lifecycle.enum_values.values.id: preview-id AND create_time <
/// \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The id of the
/// allowed value associated with the lifecycle attribute of the Version is _preview-id_ and it
/// was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. *
/// `compliance.enum_values.values.id: gdpr-id OR compliance.enum_values.values.id: pci-dss-id`
/// - The id of the allowed value associated with the compliance attribute is _gdpr-id_ or
/// _pci-dss-id_. * `lifecycle.enum_values.values.id: preview-id AND
/// attributes.projects/test-project-id/locations/test-location-id/
/// attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values: test` - The filter
/// string specifies that the id of the allowed value associated with the lifecycle attribute of
/// the Version is _preview-id_ and the value of the user defined attribute of type string is
/// _test_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of versions to return. The service may return fewer than this
/// value. If unspecified, at most 50 versions will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListVersions` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters (except page_size)
/// provided to `ListVersions` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/versions";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update API version. The following fields in the version can be updated currently: * display_name
/// * description * documentation * deployments * lifecycle * compliance * accreditation *
/// attributes The update_mask should be used to specify the fields being updated.
///
/// The body of the request.
///
/// Identifier. The name of the version. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Version body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update API version. The following fields in the version can be updated currently: * display_name
/// * description * documentation * deployments * lifecycle * compliance * accreditation *
/// attributes The update_mask should be used to specify the fields being updated.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Version body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the version. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Version Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
///
/// Create an API resource in the API hub. Once an API resource is created, versions can be added to it.
///
/// The body of the request.
///
/// Required. The parent resource for the API resource. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Api body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create an API resource in the API hub. Once an API resource is created, versions can be added to it.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Api body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the API resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the API resource, which will become the final component of the API's
/// resource name. This field is optional. * If provided, the same will be used. The service will
/// throw an error if the specified id is already used by another API resource in the API hub. * If
/// not provided, a system generated id will be used. This value should be 4-500 characters, and
/// valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("apiId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ApiId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Api Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/apis";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("apiId", new Google.Apis.Discovery.Parameter
{
Name = "apiId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete an API resource in the API hub. API can only be deleted if all underlying versions are
/// deleted.
///
///
/// Required. The name of the API resource to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete an API resource in the API hub. API can only be deleted if all underlying versions are
/// deleted.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the API resource to delete. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
///
/// Optional. If set to true, any versions from this API will also be deleted. Otherwise, the
/// request will only work if the API has no versions.
///
[Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Force { get; set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+$",
});
RequestParameters.Add("force", new Google.Apis.Discovery.Parameter
{
Name = "force",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Get API resource details including the API versions contained in it.
///
/// Required. The name of the API resource to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get API resource details including the API versions contained in it.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the API resource to retrieve. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+$",
});
}
}
/// List API resources in the API hub.
///
/// Required. The parent, which owns this collection of API resources. Format:
/// `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List API resources in the API hub.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of API resources. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of ApiResources. A filter expression consists of a
/// field name, a comparison operator, and a value for filtering. The value must be a string. The
/// comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not case
/// sensitive. The following fields in the `ApiResource` are eligible for filtering: * `owner.email`
/// - The email of the team which owns the ApiResource. Allowed comparison operators: `=`. *
/// `create_time` - The time at which the ApiResource was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>`
/// and `<`. * `display_name` - The display name of the ApiResource. Allowed comparison
/// operators: `=`. * `target_user.enum_values.values.id` - The allowed value id of the target users
/// attribute associated with the ApiResource. Allowed comparison operator is `:`. *
/// `target_user.enum_values.values.display_name` - The allowed value display name of the target
/// users attribute associated with the ApiResource. Allowed comparison operator is `:`. *
/// `team.enum_values.values.id` - The allowed value id of the team attribute associated with the
/// ApiResource. Allowed comparison operator is `:`. * `team.enum_values.values.display_name` - The
/// allowed value display name of the team attribute associated with the ApiResource. Allowed
/// comparison operator is `:`. * `business_unit.enum_values.values.id` - The allowed value id of
/// the business unit attribute associated with the ApiResource. Allowed comparison operator is `:`.
/// * `business_unit.enum_values.values.display_name` - The allowed value display name of the
/// business unit attribute associated with the ApiResource. Allowed comparison operator is `:`. *
/// `maturity_level.enum_values.values.id` - The allowed value id of the maturity level attribute
/// associated with the ApiResource. Allowed comparison operator is `:`. *
/// `maturity_level.enum_values.values.display_name` - The allowed value display name of the
/// maturity level attribute associated with the ApiResource. Allowed comparison operator is `:`. *
/// `api_style.enum_values.values.id` - The allowed value id of the api style attribute associated
/// with the ApiResource. Allowed comparison operator is `:`. *
/// `api_style.enum_values.values.display_name` - The allowed value display name of the api style
/// attribute associated with the ApiResource. Allowed comparison operator is `:`. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of the user
/// defined enum attribute associated with the Resource. Allowed comparison operator is `:`. Here
/// user-defined-attribute-enum-id is a placeholder that can be replaced with any user defined enum
/// attribute name. * `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed value
/// display name of the user defined enum attribute associated with the Resource. Allowed comparison
/// operator is `:`. Here user-defined-attribute-enum-display-name is a placeholder that can be
/// replaced with any user defined enum attribute enum name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.string_values.values` - The allowed value of the user
/// defined string attribute associated with the Resource. Allowed comparison operator is `:`. Here
/// user-defined-attribute-string is a placeholder that can be replaced with any user defined string
/// attribute name. * `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user defined
/// JSON attribute associated with the Resource. Allowed comparison operator is `:`. Here
/// user-defined-attribute-json is a placeholder that can be replaced with any user defined JSON
/// attribute name. A filter function is also supported in the filter string. The filter function is
/// `id(name)`. The `id(name)` function returns the id of the resource name. For example, `id(name)
/// = \"api-1\"` is equivalent to `name =
/// \"projects/test-project-id/locations/test-location-id/apis/api-1\"` provided the parent is
/// `projects/test-project-id/locations/test-location-id`. Another supported filter function is
/// `plugins(source_metadata)`. This function filters for resources that are associated with a
/// specific plugin. For example, `plugins(source_metadata) :
/// "projects/test-project-id/locations/test-location-id/plugins/test-plugin-id"` will return
/// resources sourced from the given plugin. Expressions are combined with either `AND` logic
/// operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or
/// `OR` operator can be used throughout the filter string and both the operators cannot be used
/// together. No other logical operators are supported. At most three filter fields are allowed in
/// the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by
/// the API. Here are a few examples: * `owner.email = \"apihub@google.com\"` - - The owner team
/// email is _apihub@google.com_. * `owner.email = \"apihub@google.com\" AND create_time <
/// \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The owner team
/// email is _apihub@google.com_ and the api was created before _2021-08-15 14:50:00 UTC_ and after
/// _2021-08-10 12:00:00 UTC_. * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id:
/// apihub-team-id` - The filter string specifies the APIs where the owner team email is
/// _apihub@google.com_ or the id of the allowed value associated with the team attribute is
/// _apihub-team-id_. * `owner.email = \"apihub@google.com\" OR
/// team.enum_values.values.display_name: ApiHub Team` - The filter string specifies the APIs where
/// the owner team email is _apihub@google.com_ or the display name of the allowed value associated
/// with the team attribute is `ApiHub Team`. * `owner.email = \"apihub@google.com\" AND
/// attributes.projects/test-project-id/locations/test-location-id/
/// attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id: test_enum_id AND
/// attributes.projects/test-project-id/locations/test-location-id/
/// attributes/1765\0f90-4a29-5431-b3d0-d5532da3764c.string_values.values: test_string_value` - The
/// filter string specifies the APIs where the owner team email is _apihub@google.com_ and the id of
/// the allowed value associated with the user defined attribute of type enum is _test_enum_id_ and
/// the value of the user defined attribute of type string is _test_..
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of API resources to return. The service may return fewer than this
/// value. If unspecified, at most 50 Apis will be returned. The maximum value is 1000; values above
/// 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListApis` call. Provide this to retrieve the
/// subsequent page. When paginating, all other parameters (except page_size) provided to `ListApis`
/// must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/apis";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update an API resource in the API hub. The following fields in the API can be updated: *
/// display_name * description * owner * documentation * target_user * team * business_unit *
/// maturity_level * api_style * attributes * fingerprint The update_mask should be used to specify the
/// fields being updated. Updating the owner field requires complete owner message and updates both
/// owner and email fields.
///
/// The body of the request.
///
/// Identifier. The name of the API resource in the API Hub. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Api body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update an API resource in the API hub. The following fields in the API can be updated: *
/// display_name * description * owner * documentation * target_user * team * business_unit *
/// maturity_level * api_style * attributes * fingerprint The update_mask should be used to specify the
/// fields being updated. Updating the owner field requires complete owner message and updates both
/// owner and email fields.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Api body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the API resource in the API Hub. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Api Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/apis/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Attributes resource.
public virtual AttributesResource Attributes { get; }
/// The "attributes" collection of methods.
public class AttributesResource
{
private const string Resource = "attributes";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public AttributesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Create a user defined attribute. Certain pre defined attributes are already created by the API hub.
/// These attributes will have type as `SYSTEM_DEFINED` and can be listed via ListAttributes method.
/// Allowed values for the same can be updated via UpdateAttribute method.
///
/// The body of the request.
///
/// Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Attribute body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create a user defined attribute. Certain pre defined attributes are already created by the API hub.
/// These attributes will have type as `SYSTEM_DEFINED` and can be listed via ListAttributes method.
/// Allowed values for the same can be updated via UpdateAttribute method.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Attribute body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the attribute, which will become the final component of the
/// attribute's resource name. This field is optional. * If provided, the same will be used. The
/// service will throw an error if the specified id is already used by another attribute resource in
/// the API hub. * If not provided, a system generated id will be used. This value should be 4-500
/// characters, and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("attributeId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AttributeId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Attribute Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/attributes";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("attributeId", new Google.Apis.Discovery.Parameter
{
Name = "attributeId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete an attribute. Note: System defined attributes cannot be deleted. All associations of the
/// attribute being deleted with any API hub resource will also get deleted.
///
///
/// Required. The name of the attribute to delete. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete an attribute. Note: System defined attributes cannot be deleted. All associations of the
/// attribute being deleted with any API hub resource will also get deleted.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the attribute to delete. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/attributes/[^/]+$",
});
}
}
/// Get details about the attribute.
///
/// Required. The name of the attribute to retrieve. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get details about the attribute.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the attribute to retrieve. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/attributes/[^/]+$",
});
}
}
/// List all attributes.
///
/// Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List all attributes.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of Attributes. A filter expression consists of a
/// field name, a comparison operator, and a value for filtering. The value must be a string or a
/// boolean. The comparison operator must be one of: `<`, `>` or `=`. Filters are not
/// case sensitive. The following fields in the `Attribute` are eligible for filtering: *
/// `display_name` - The display name of the Attribute. Allowed comparison operators: `=`. *
/// `definition_type` - The definition type of the attribute. Allowed comparison operators: `=`. *
/// `scope` - The scope of the attribute. Allowed comparison operators: `=`. * `data_type` - The
/// type of the data of the attribute. Allowed comparison operators: `=`. * `mandatory` - Denotes
/// whether the attribute is mandatory or not. Allowed comparison operators: `=`. * `create_time` -
/// The time at which the Attribute was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>`
/// and `<`. Expressions are combined with either `AND` logic operator or `OR` logical
/// operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used
/// throughout the filter string and both the operators cannot be used together. No other logical
/// operators are supported. At most three filter fields are allowed in the filter string and if
/// provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few
/// examples: * `display_name = production` - - The display name of the attribute is _production_. *
/// `(display_name = production) AND (create_time < \"2021-08-15T14:50:00Z\") AND
/// (create_time > \"2021-08-10T12:00:00Z\")` - The display name of the attribute is
/// _production_ and the attribute was created before _2021-08-15 14:50:00 UTC_ and after
/// _2021-08-10 12:00:00 UTC_. * `display_name = production OR scope = api` - The attribute where
/// the display name is _production_ or the scope is _api_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of attribute resources to return. The service may return fewer than
/// this value. If unspecified, at most 50 attributes will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListAttributes` call. Provide this to retrieve
/// the subsequent page. When paginating, all other parameters provided to `ListAttributes` must
/// match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/attributes";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update the attribute. The following fields in the Attribute resource can be updated: * display_name
/// The display name can be updated for user defined attributes only. * description The description can
/// be updated for user defined attributes only. * allowed_values To update the list of allowed values,
/// clients need to use the fetched list of allowed values and add or remove values to or from the same
/// list. The mutable allowed values can be updated for both user defined and System defined attributes.
/// The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot
/// be empty. If an allowed value that is already used by some resource's attribute is deleted, then the
/// association between the resource and the attribute value will also be deleted. * cardinality The
/// cardinality can be updated for user defined attributes only. Cardinality can only be increased
/// during an update. The update_mask should be used to specify the fields being updated.
///
/// The body of the request.
///
/// Identifier. The name of the attribute in the API Hub. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Attribute body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update the attribute. The following fields in the Attribute resource can be updated: * display_name
/// The display name can be updated for user defined attributes only. * description The description can
/// be updated for user defined attributes only. * allowed_values To update the list of allowed values,
/// clients need to use the fetched list of allowed values and add or remove values to or from the same
/// list. The mutable allowed values can be updated for both user defined and System defined attributes.
/// The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot
/// be empty. If an allowed value that is already used by some resource's attribute is deleted, then the
/// association between the resource and the attribute value will also be deleted. * cardinality The
/// cardinality can be updated for user defined attributes only. Cardinality can only be increased
/// during an update. The update_mask should be used to specify the fields being updated.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Attribute body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the attribute in the API Hub. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Attribute Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/attributes/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Curations resource.
public virtual CurationsResource Curations { get; }
/// The "curations" collection of methods.
public class CurationsResource
{
private const string Resource = "curations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public CurationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Create a curation resource in the API hub. Once a curation resource is created, plugin instances can
/// start using it.
///
/// The body of the request.
///
/// Required. The parent resource for the curation resource. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Curation body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create a curation resource in the API hub. Once a curation resource is created, plugin instances can
/// start using it.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Curation body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the curation resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the curation resource, which will become the final component of the
/// curations's resource name. This field is optional. * If provided, the same will be used. The
/// service will throw an error if the specified ID is already used by another curation resource in
/// the API hub. * If not provided, a system generated ID will be used. This value should be 4-500
/// characters, and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("curationId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string CurationId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Curation Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/curations";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("curationId", new Google.Apis.Discovery.Parameter
{
Name = "curationId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete a curation resource in the API hub. A curation can only be deleted if it's not being used by
/// any plugin instance.
///
///
/// Required. The name of the curation resource to delete. Format:
/// `projects/{project}/locations/{location}/curations/{curation}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete a curation resource in the API hub. A curation can only be deleted if it's not being used by
/// any plugin instance.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the curation resource to delete. Format:
/// `projects/{project}/locations/{location}/curations/{curation}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/curations/[^/]+$",
});
}
}
/// Get curation resource details.
///
/// Required. The name of the curation resource to retrieve. Format:
/// `projects/{project}/locations/{location}/curations/{curation}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get curation resource details.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the curation resource to retrieve. Format:
/// `projects/{project}/locations/{location}/curations/{curation}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/curations/[^/]+$",
});
}
}
/// List curation resources in the API hub.
///
/// Required. The parent, which owns this collection of curation resources. Format:
/// `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List curation resources in the API hub.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of curation resources. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of curation resources. A filter expression
/// consists of a field name, a comparison operator, and a value for filtering. The value must be a
/// string. The comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are
/// case insensitive. The following fields in the `curation resource` are eligible for filtering: *
/// `create_time` - The time at which the curation was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>`
/// and `<`. * `display_name` - The display name of the curation. Allowed comparison
/// operators: `=`. * `state` - The state of the curation. Allowed comparison operators: `=`.
/// Expressions are combined with either `AND` logic operator or `OR` logical operator but not both
/// of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter
/// string and both the operators cannot be used together. No other logical operators are supported.
/// At most three filter fields are allowed in the filter string and if provided more than that then
/// `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `create_time
/// < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The
/// curation resource was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00
/// UTC_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of curation resources to return. The service may return fewer than
/// this value. If unspecified, at most 50 curations will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListCurations` call. Provide this to retrieve
/// the subsequent page. When paginating, all other parameters (except page_size) provided to
/// `ListCurations` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/curations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update a curation resource in the API hub. The following fields in the curation can be updated: *
/// display_name * description The update_mask should be used to specify the fields being updated.
///
/// The body of the request.
///
/// Identifier. The name of the curation. Format:
/// `projects/{project}/locations/{location}/curations/{curation}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Curation body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update a curation resource in the API hub. The following fields in the curation can be updated: *
/// display_name * description The update_mask should be used to specify the fields being updated.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Curation body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the curation. Format:
/// `projects/{project}/locations/{location}/curations/{curation}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Optional. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Curation Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/curations/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Dependencies resource.
public virtual DependenciesResource Dependencies { get; }
/// The "dependencies" collection of methods.
public class DependenciesResource
{
private const string Resource = "dependencies";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DependenciesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Create a dependency between two entities in the API hub.
/// The body of the request.
///
/// Required. The parent resource for the dependency resource. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Dependency body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Create a dependency between two entities in the API hub.
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Dependency body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the dependency resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the dependency resource, which will become the final component of
/// the dependency's resource name. This field is optional. * If provided, the same will be used.
/// The service will throw an error if duplicate id is provided by the client. * If not provided, a
/// system generated id will be used. This value should be 4-500 characters, and valid characters
/// are `a-z[0-9]-_`.
///
[Google.Apis.Util.RequestParameterAttribute("dependencyId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string DependencyId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Dependency Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/dependencies";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("dependencyId", new Google.Apis.Discovery.Parameter
{
Name = "dependencyId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Delete the dependency resource.
///
/// Required. The name of the dependency resource to delete. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// Delete the dependency resource.
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the dependency resource to delete. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/dependencies/[^/]+$",
});
}
}
/// Get details about a dependency resource in the API hub.
///
/// Required. The name of the dependency resource to retrieve. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get details about a dependency resource in the API hub.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the dependency resource to retrieve. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/dependencies/[^/]+$",
});
}
}
/// List dependencies based on the provided filter and pagination parameters.
///
/// Required. The parent which owns this collection of dependency resources. Format:
/// `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List dependencies based on the provided filter and pagination parameters.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent which owns this collection of dependency resources. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of Dependencies. A filter expression consists of a
/// field name, a comparison operator, and a value for filtering. The value must be a string.
/// Allowed comparison operator is `=`. Filters are not case sensitive. The following fields in the
/// `Dependency` are eligible for filtering: * `consumer.operation_resource_name` - The operation
/// resource name for the consumer entity involved in a dependency. Allowed comparison operators:
/// `=`. * `consumer.external_api_resource_name` - The external api resource name for the consumer
/// entity involved in a dependency. Allowed comparison operators: `=`. *
/// `supplier.operation_resource_name` - The operation resource name for the supplier entity
/// involved in a dependency. Allowed comparison operators: `=`. *
/// `supplier.external_api_resource_name` - The external api resource name for the supplier entity
/// involved in a dependency. Allowed comparison operators: `=`. Expressions are combined with
/// either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one
/// of the `AND` or `OR` operator can be used throughout the filter string and both the operators
/// cannot be used together. No other logical operators are supported. At most three filter fields
/// are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is
/// returned by the API. For example, `consumer.operation_resource_name =
/// \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR
/// supplier.operation_resource_name =
/// \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The dependencies with
/// either consumer or supplier operation resource name as
/// _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of dependency resources to return. The service may return fewer
/// than this value. If unspecified, at most 50 dependencies will be returned. The maximum value is
/// 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListDependencies` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListDependencies` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/dependencies";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update a dependency based on the update_mask provided in the request. The following fields in the
/// dependency can be updated: * description
///
/// The body of the request.
///
/// Identifier. The name of the dependency in the API Hub. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Dependency body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update a dependency based on the update_mask provided in the request. The following fields in the
/// dependency can be updated: * description
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Dependency body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the dependency in the API Hub. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Dependency Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/dependencies/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Deployments resource.
public virtual DeploymentsResource Deployments { get; }
/// The "deployments" collection of methods.
public class DeploymentsResource
{
private const string Resource = "deployments";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DeploymentsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Create a deployment resource in the API hub. Once a deployment resource is created, it can be
/// associated with API versions.
///
/// The body of the request.
///
/// Required. The parent resource for the deployment resource. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Deployment body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create a deployment resource in the API hub. Once a deployment resource is created, it can be
/// associated with API versions.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Deployment body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the deployment resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the deployment resource, which will become the final component of
/// the deployment's resource name. This field is optional. * If provided, the same will be used.
/// The service will throw an error if the specified id is already used by another deployment
/// resource in the API hub. * If not provided, a system generated id will be used. This value
/// should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("deploymentId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string DeploymentId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Deployment Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/deployments";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("deploymentId", new Google.Apis.Discovery.Parameter
{
Name = "deploymentId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Delete a deployment resource in the API hub.
///
/// Required. The name of the deployment resource to delete. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// Delete a deployment resource in the API hub.
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the deployment resource to delete. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/deployments/[^/]+$",
});
}
}
/// Get details about a deployment and the API versions linked to it.
///
/// Required. The name of the deployment resource to retrieve. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get details about a deployment and the API versions linked to it.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the deployment resource to retrieve. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/deployments/[^/]+$",
});
}
}
/// List deployment resources in the API hub.
///
/// Required. The parent, which owns this collection of deployment resources. Format:
/// `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List deployment resources in the API hub.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of deployment resources. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of Deployments. A filter expression consists of a
/// field name, a comparison operator, and a value for filtering. The value must be a string. The
/// comparison operator must be one of: `<`, `>` or `=`. Filters are not case
/// sensitive. The following fields in the `Deployments` are eligible for filtering: *
/// `display_name` - The display name of the Deployment. Allowed comparison operators: `=`. *
/// `create_time` - The time at which the Deployment was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>`
/// and `<`. * `resource_uri` - A URI to the deployment resource. Allowed comparison
/// operators: `=`. * `api_versions` - The API versions linked to this deployment. Allowed
/// comparison operators: `:`. * `source_project` - The project/organization at source for the
/// deployment. Allowed comparison operators: `=`. * `source_environment` - The environment at
/// source for the deployment. Allowed comparison operators: `=`. *
/// `deployment_type.enum_values.values.id` - The allowed value id of the deployment_type attribute
/// associated with the Deployment. Allowed comparison operators: `:`. *
/// `deployment_type.enum_values.values.display_name` - The allowed value display name of the
/// deployment_type attribute associated with the Deployment. Allowed comparison operators: `:`. *
/// `slo.string_values.values` -The allowed string value of the slo attribute associated with the
/// deployment. Allowed comparison operators: `:`. * `environment.enum_values.values.id` - The
/// allowed value id of the environment attribute associated with the deployment. Allowed comparison
/// operators: `:`. * `environment.enum_values.values.display_name` - The allowed value display name
/// of the environment attribute associated with the deployment. Allowed comparison operators: `:`.
/// * `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of the user
/// defined enum attribute associated with the Resource. Allowed comparison operator is `:`. Here
/// user-defined-attribute-enum-id is a placeholder that can be replaced with any user defined enum
/// attribute name. * `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed value
/// display name of the user defined enum attribute associated with the Resource. Allowed comparison
/// operator is `:`. Here user-defined-attribute-enum-display-name is a placeholder that can be
/// replaced with any user defined enum attribute enum name. *
/// `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.string_values.values` - The allowed value of the user
/// defined string attribute associated with the Resource. Allowed comparison operator is `:`. Here
/// user-defined-attribute-string is a placeholder that can be replaced with any user defined string
/// attribute name. * `attributes.projects/test-project-id/locations/test-location-id/
/// attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user defined
/// JSON attribute associated with the Resource. Allowed comparison operator is `:`. Here
/// user-defined-attribute-json is a placeholder that can be replaced with any user defined JSON
/// attribute name. A filter function is also supported in the filter string. The filter function is
/// `id(name)`. The `id(name)` function returns the id of the resource name. For example, `id(name)
/// = \"deployment-1\"` is equivalent to `name =
/// \"projects/test-project-id/locations/test-location-id/deployments/deployment-1\"` provided the
/// parent is `projects/test-project-id/locations/test-location-id`. Expressions are combined with
/// either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one
/// of the `AND` or `OR` operator can be used throughout the filter string and both the operators
/// cannot be used together. No other logical operators are supported. At most three filter fields
/// are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is
/// returned by the API. Here are a few examples: * `environment.enum_values.values.id: staging-id`
/// - The allowed value id of the environment attribute associated with the Deployment is
/// _staging-id_. * `environment.enum_values.values.display_name: \"Staging Deployment\"` - The
/// allowed value display name of the environment attribute associated with the Deployment is
/// `Staging Deployment`. * `environment.enum_values.values.id: production-id AND create_time
/// < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The
/// allowed value id of the environment attribute associated with the Deployment is _production-id_
/// and Deployment was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_.
/// * `environment.enum_values.values.id: production-id OR slo.string_values.values: \"99.99%\"` -
/// The allowed value id of the environment attribute Deployment is _production-id_ or string value
/// of the slo attribute is _99.99%_. * `environment.enum_values.values.id: staging-id AND
/// attributes.projects/test-project-id/locations/test-location-id/
/// attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values: test` - The filter string
/// specifies that the allowed value id of the environment attribute associated with the Deployment
/// is _staging-id_ and the value of the user defined attribute of type string is _test_.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of deployment resources to return. The service may return fewer
/// than this value. If unspecified, at most 50 deployments will be returned. The maximum value is
/// 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListDeployments` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters (except page_size) provided
/// to `ListDeployments` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/deployments";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update a deployment resource in the API hub. The following fields in the deployment resource can be
/// updated: * display_name * description * documentation * deployment_type * resource_uri * endpoints *
/// slo * environment * attributes * source_project * source_environment * management_url * source_uri
/// The update_mask should be used to specify the fields being updated.
///
/// The body of the request.
///
/// Identifier. The name of the deployment. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Deployment body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update a deployment resource in the API hub. The following fields in the deployment resource can be
/// updated: * display_name * description * documentation * deployment_type * resource_uri * endpoints *
/// slo * environment * attributes * source_project * source_environment * management_url * source_uri
/// The update_mask should be used to specify the fields being updated.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Deployment body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the deployment. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Deployment Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/deployments/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the DiscoveredApiObservations resource.
public virtual DiscoveredApiObservationsResource DiscoveredApiObservations { get; }
/// The "discoveredApiObservations" collection of methods.
public class DiscoveredApiObservationsResource
{
private const string Resource = "discoveredApiObservations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DiscoveredApiObservationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
DiscoveredApiOperations = new DiscoveredApiOperationsResource(service);
}
/// Gets the DiscoveredApiOperations resource.
public virtual DiscoveredApiOperationsResource DiscoveredApiOperations { get; }
/// The "discoveredApiOperations" collection of methods.
public class DiscoveredApiOperationsResource
{
private const string Resource = "discoveredApiOperations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DiscoveredApiOperationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Gets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation.
///
///
/// Required. The name of the DiscoveredApiOperation to retrieve. Format:
/// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
///
/// Gets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation.
///
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the DiscoveredApiOperation to retrieve. Format:
/// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/discoveredApiObservations/[^/]+/discoveredApiOperations/[^/]+$",
});
}
}
///
/// Lists all the DiscoveredAPIOperations in a given project, location and ApiObservation.
///
///
/// Required. The parent, which owns this collection of DiscoveredApiOperations. Format:
/// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
///
/// Lists all the DiscoveredAPIOperations in a given project, location and ApiObservation.
///
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of DiscoveredApiOperations. Format:
/// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. DiscoveredApiOperations will be returned. The maximum value is 1000; values above
/// 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListDiscoveredApiApiOperations` call.
/// Provide this to retrieve the subsequent page. When paginating, all other parameters provided
/// to `ListDiscoveredApiApiOperations` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/discoveredApiOperations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/discoveredApiObservations/[^/]+$",
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets a DiscoveredAPIObservation in a given project, location and ApiObservation.
///
/// Required. The name of the DiscoveredApiObservation to retrieve. Format:
/// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Gets a DiscoveredAPIObservation in a given project, location and ApiObservation.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the DiscoveredApiObservation to retrieve. Format:
/// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/discoveredApiObservations/[^/]+$",
});
}
}
/// Lists all the DiscoveredAPIObservations in a given project and location.
///
/// Required. The parent, which owns this collection of ApiObservations. Format:
/// projects/{project}/locations/{location}
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// Lists all the DiscoveredAPIObservations in a given project and location.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of ApiObservations. Format:
/// projects/{project}/locations/{location}
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The maximum number of ApiObservations to return. The service may return fewer than
/// this value. If unspecified, at most 10 ApiObservations will be returned. The maximum value is
/// 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListApiObservations` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListApiObservations` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/discoveredApiObservations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the ExternalApis resource.
public virtual ExternalApisResource ExternalApis { get; }
/// The "externalApis" collection of methods.
public class ExternalApisResource
{
private const string Resource = "externalApis";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ExternalApisResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Create an External API resource in the API hub.
/// The body of the request.
///
/// Required. The parent resource for the External API resource. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExternalApi body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Create an External API resource in the API hub.
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExternalApi body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the External API resource. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the External API resource, which will become the final component of
/// the External API's resource name. This field is optional. * If provided, the same will be used.
/// The service will throw an error if the specified id is already used by another External API
/// resource in the API hub. * If not provided, a system generated id will be used. This value
/// should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("externalApiId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ExternalApiId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExternalApi Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/externalApis";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("externalApiId", new Google.Apis.Discovery.Parameter
{
Name = "externalApiId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Delete an External API resource in the API hub.
///
/// Required. The name of the External API resource to delete. Format:
/// `projects/{project}/locations/{location}/externalApis/{externalApi}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// Delete an External API resource in the API hub.
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the External API resource to delete. Format:
/// `projects/{project}/locations/{location}/externalApis/{externalApi}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/externalApis/[^/]+$",
});
}
}
/// Get details about an External API resource in the API hub.
///
/// Required. The name of the External API resource to retrieve. Format:
/// `projects/{project}/locations/{location}/externalApis/{externalApi}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get details about an External API resource in the API hub.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the External API resource to retrieve. Format:
/// `projects/{project}/locations/{location}/externalApis/{externalApi}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/externalApis/[^/]+$",
});
}
}
/// List External API resources in the API hub.
///
/// Required. The parent, which owns this collection of External API resources. Format:
/// `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List External API resources in the API hub.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of External API resources. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The maximum number of External API resources to return. The service may return fewer
/// than this value. If unspecified, at most 50 ExternalApis will be returned. The maximum value is
/// 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListExternalApis` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters (except page_size) provided
/// to `ListExternalApis` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/externalApis";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Update an External API resource in the API hub. The following fields can be updated: * display_name
/// * description * documentation * endpoints * paths The update_mask should be used to specify the
/// fields being updated.
///
/// The body of the request.
///
/// Identifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExternalApi body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Update an External API resource in the API hub. The following fields can be updated: * display_name
/// * description * documentation * endpoints * paths The update_mask should be used to specify the
/// fields being updated.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExternalApi body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Required. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExternalApi Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/externalApis/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the HostProjectRegistrations resource.
public virtual HostProjectRegistrationsResource HostProjectRegistrations { get; }
/// The "hostProjectRegistrations" collection of methods.
public class HostProjectRegistrationsResource
{
private const string Resource = "hostProjectRegistrations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public HostProjectRegistrationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Create a host project registration. A Google cloud project can be registered as a host project if it
/// is not attached as a runtime project to another host project. A project can be registered as a host
/// project only once. Subsequent register calls for the same project will fail.
///
/// The body of the request.
///
/// Required. The parent resource for the host project. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1HostProjectRegistration body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create a host project registration. A Google cloud project can be registered as a host project if it
/// is not attached as a runtime project to another host project. A project can be registered as a host
/// project only once. Subsequent register calls for the same project will fail.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1HostProjectRegistration body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the host project. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Required. The ID to use for the Host Project Registration, which will become the final component
/// of the host project registration's resource name. The ID must be the same as the Google cloud
/// project specified in the host_project_registration.gcp_project field.
///
[Google.Apis.Util.RequestParameterAttribute("hostProjectRegistrationId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string HostProjectRegistrationId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1HostProjectRegistration Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/hostProjectRegistrations";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("hostProjectRegistrationId", new Google.Apis.Discovery.Parameter
{
Name = "hostProjectRegistrationId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Get a host project registration.
///
/// Required. Host project registration resource name.
/// projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id}
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get a host project registration.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. Host project registration resource name.
/// projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/hostProjectRegistrations/[^/]+$",
});
}
}
/// Lists host project registrations.
///
/// Required. The parent, which owns this collection of host projects. Format: `projects/*/locations/*`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// Lists host project registrations.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of host projects. Format:
/// `projects/*/locations/*`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of HostProjectRegistrations. A filter expression
/// consists of a field name, a comparison operator, and a value for filtering. The value must be a
/// string. All standard operators as documented at https://google.aip.dev/160 are supported. The
/// following fields in the `HostProjectRegistration` are eligible for filtering: * `name` - The
/// name of the HostProjectRegistration. * `create_time` - The time at which the
/// HostProjectRegistration was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. * `gcp_project` - The Google cloud
/// project associated with the HostProjectRegistration.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
/// Optional. Hint for how to order the results.
[Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
///
/// Optional. The maximum number of host project registrations to return. The service may return
/// fewer than this value. If unspecified, at most 50 host project registrations will be returned.
/// The maximum value is 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListHostProjectRegistrations` call. Provide
/// this to retrieve the subsequent page. When paginating, all other parameters (except page_size)
/// provided to `ListHostProjectRegistrations` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/hostProjectRegistrations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter
{
Name = "orderBy",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Operations resource.
public virtual OperationsResource Operations { get; }
/// The "operations" collection of methods.
public class OperationsResource
{
private const string Resource = "operations";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public OperationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
/// cancel the operation, but success is not guaranteed. If the server doesn't support this method, it
/// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to
/// check whether the cancellation succeeded or whether the operation completed despite cancellation. On
/// successful cancellation, the operation is not deleted; instead, it becomes an operation with an
/// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
///
/// The body of the request.
/// The name of the operation resource to be cancelled.
public virtual CancelRequest Cancel(Google.Apis.APIhub.v1.Data.GoogleLongrunningCancelOperationRequest body, string name)
{
return new CancelRequest(this.service, body, name);
}
///
/// Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
/// cancel the operation, but success is not guaranteed. If the server doesn't support this method, it
/// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to
/// check whether the cancellation succeeded or whether the operation completed despite cancellation. On
/// successful cancellation, the operation is not deleted; instead, it becomes an operation with an
/// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
///
public class CancelRequest : APIhubBaseServiceRequest
{
/// Constructs a new Cancel request.
public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleLongrunningCancelOperationRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
/// The name of the operation resource to be cancelled.
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleLongrunningCancelOperationRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "cancel";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:cancel";
/// Initializes Cancel parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
});
}
}
///
/// Deletes a long-running operation. This method indicates that the client is no longer interested in
/// the operation result. It does not cancel the operation. If the server doesn't support this method,
/// it returns `google.rpc.Code.UNIMPLEMENTED`.
///
/// The name of the operation resource to be deleted.
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Deletes a long-running operation. This method indicates that the client is no longer interested in
/// the operation result. It does not cancel the operation. If the server doesn't support this method,
/// it returns `google.rpc.Code.UNIMPLEMENTED`.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// The name of the operation resource to be deleted.
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
});
}
}
///
/// Gets the latest state of a long-running operation. Clients can use this method to poll the operation
/// result at intervals as recommended by the API service.
///
/// The name of the operation resource.
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
///
/// Gets the latest state of a long-running operation. Clients can use this method to poll the operation
/// result at intervals as recommended by the API service.
///
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// The name of the operation resource.
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
});
}
}
///
/// Lists operations that match the specified filter in the request. If the server doesn't support this
/// method, it returns `UNIMPLEMENTED`.
///
/// The name of the operation's parent resource.
public virtual ListRequest List(string name)
{
return new ListRequest(this.service, name);
}
///
/// Lists operations that match the specified filter in the request. If the server doesn't support this
/// method, it returns `UNIMPLEMENTED`.
///
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// The name of the operation's parent resource.
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// The standard list filter.
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
/// The standard list page size.
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
/// The standard list page token.
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
///
/// When set to `true`, operations that are reachable are returned as normal, and those that are
/// unreachable are returned in the ListOperationsResponse.unreachable field. This can only be
/// `true` when reading across collections. For example, when `parent` is set to
/// `"projects/example/locations/-"`. This field is not supported by default and will result in an
/// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product
/// specific documentation.
///
[Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable ReturnPartialSuccess { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}/operations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter
{
Name = "returnPartialSuccess",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Plugins resource.
public virtual PluginsResource Plugins { get; }
/// The "plugins" collection of methods.
public class PluginsResource
{
private const string Resource = "plugins";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public PluginsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Instances = new InstancesResource(service);
StyleGuide = new StyleGuideResource(service);
}
/// Gets the Instances resource.
public virtual InstancesResource Instances { get; }
/// The "instances" collection of methods.
public class InstancesResource
{
private const string Resource = "instances";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public InstancesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Creates a Plugin instance in the API hub.
/// The body of the request.
///
/// Required. The parent of the plugin instance resource. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1PluginInstance body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Creates a Plugin instance in the API hub.
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1PluginInstance body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent of the plugin instance resource. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the plugin instance, which will become the final component of
/// the plugin instance's resource name. This field is optional. * If provided, the same will be
/// used. The service will throw an error if the specified id is already used by another plugin
/// instance in the plugin resource. * If not provided, a system generated id will be used. This
/// value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("pluginInstanceId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PluginInstanceId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1PluginInstance Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/instances";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+$",
});
RequestParameters.Add("pluginInstanceId", new Google.Apis.Discovery.Parameter
{
Name = "pluginInstanceId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Deletes a plugin instance in the API hub.
///
/// Required. The name of the plugin instance to delete. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// Deletes a plugin instance in the API hub.
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the plugin instance to delete. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
}
}
/// Disables a plugin instance in the API hub.
/// The body of the request.
///
/// Required. The name of the plugin instance to disable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
public virtual DisableActionRequest DisableAction(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1DisablePluginInstanceActionRequest body, string name)
{
return new DisableActionRequest(this.service, body, name);
}
/// Disables a plugin instance in the API hub.
public class DisableActionRequest : APIhubBaseServiceRequest
{
/// Constructs a new DisableAction request.
public DisableActionRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1DisablePluginInstanceActionRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the plugin instance to disable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1DisablePluginInstanceActionRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "disableAction";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:disableAction";
/// Initializes DisableAction parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
}
}
/// Enables a plugin instance in the API hub.
/// The body of the request.
///
/// Required. The name of the plugin instance to enable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
public virtual EnableActionRequest EnableAction(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1EnablePluginInstanceActionRequest body, string name)
{
return new EnableActionRequest(this.service, body, name);
}
/// Enables a plugin instance in the API hub.
public class EnableActionRequest : APIhubBaseServiceRequest
{
/// Constructs a new EnableAction request.
public EnableActionRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1EnablePluginInstanceActionRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the plugin instance to enable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1EnablePluginInstanceActionRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "enableAction";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:enableAction";
/// Initializes EnableAction parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
}
}
/// Executes a plugin instance in the API hub.
/// The body of the request.
///
/// Required. The name of the plugin instance to execute. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
public virtual ExecuteActionRequest ExecuteAction(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExecutePluginInstanceActionRequest body, string name)
{
return new ExecuteActionRequest(this.service, body, name);
}
/// Executes a plugin instance in the API hub.
public class ExecuteActionRequest : APIhubBaseServiceRequest
{
/// Constructs a new ExecuteAction request.
public ExecuteActionRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExecutePluginInstanceActionRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the plugin instance to execute. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ExecutePluginInstanceActionRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "executeAction";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:executeAction";
/// Initializes ExecuteAction parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
}
}
/// Get an API Hub plugin instance.
///
/// Required. The name of the plugin instance to retrieve. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get an API Hub plugin instance.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the plugin instance to retrieve. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
}
}
///
/// List all the plugins in a given project and location. `-` can be used as wildcard value for
/// {plugin_id}
///
///
/// Required. The parent resource where this plugin will be created. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for
/// multiple plugins, use the - character instead of the plugin ID.
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
///
/// List all the plugins in a given project and location. `-` can be used as wildcard value for
/// {plugin_id}
///
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent resource where this plugin will be created. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for
/// multiple plugins, use the - character instead of the plugin ID.
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of plugin instances. A filter expression
/// consists of a field name, a comparison operator, and a value for filtering. The value must
/// be a string. The comparison operator must be one of: `<`, `>` or `=`. Filters
/// are not case sensitive. The following fields in the `PluginInstances` are eligible for
/// filtering: * `state` - The state of the Plugin Instance. Allowed comparison operators: `=`.
/// * `source_project_id` - The source project id of the Plugin Instance. Allowed comparison
/// operators: `=`. A filter function is also supported in the filter string. The filter
/// function is `id(name)`. The `id(name)` function returns the id of the resource name. For
/// example, `id(name) = \"plugin-instance-1\"` is equivalent to `name =
/// \"projects/test-project-id/locations/test-location-id/plugins/plugin-1/instances/plugin-instance-1\"`
/// provided the parent is
/// `projects/test-project-id/locations/test-location-id/plugins/plugin-1`. Expressions are
/// combined with either `AND` logic operator or `OR` logical operator but not both of them
/// together i.e. only one of the `AND` or `OR` operator can be used throughout the filter
/// string and both the operators cannot be used together. No other logical operators are
/// supported. At most three filter fields are allowed in the filter string and if provided more
/// than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: *
/// `state = ENABLED` - The plugin instance is in enabled state.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of hub plugins to return. The service may return fewer than
/// this value. If unspecified, at most 50 hub plugins will be returned. The maximum value is
/// 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListPluginInstances` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListPluginInstances` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/instances";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Manages data for a given plugin instance.
/// The body of the request.
///
/// Required. The name of the plugin instance for which data needs to be managed. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
public virtual ManageSourceDataRequest ManageSourceData(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest body, string name)
{
return new ManageSourceDataRequest(this.service, body, name);
}
/// Manages data for a given plugin instance.
public class ManageSourceDataRequest : APIhubBaseServiceRequest
{
/// Constructs a new ManageSourceData request.
public ManageSourceDataRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the plugin instance for which data needs to be managed. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "manageSourceData";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:manageSourceData";
/// Initializes ManageSourceData parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
}
}
///
/// Updates a plugin instance in the API hub. The following fields in the plugin_instance can be
/// updated currently: * display_name * schedule_cron_expression The update_mask should be used to
/// specify the fields being updated. To update the auth_config and additional_config of the plugin
/// instance, use the ApplyPluginInstanceConfig method.
///
/// The body of the request.
///
/// Identifier. The unique name of the plugin instance resource. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1PluginInstance body, string name)
{
return new PatchRequest(this.service, body, name);
}
///
/// Updates a plugin instance in the API hub. The following fields in the plugin_instance can be
/// updated currently: * display_name * schedule_cron_expression The update_mask should be used to
/// specify the fields being updated. To update the auth_config and additional_config of the plugin
/// instance, use the ApplyPluginInstanceConfig method.
///
public class PatchRequest : APIhubBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1PluginInstance body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The unique name of the plugin instance resource. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Optional. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1PluginInstance Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the StyleGuide resource.
public virtual StyleGuideResource StyleGuide { get; }
/// The "styleGuide" collection of methods.
public class StyleGuideResource
{
private const string Resource = "styleGuide";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public StyleGuideResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Get the contents of the style guide.
///
/// Required. The name of the StyleGuide whose contents need to be retrieved. There is exactly one
/// style guide resource per project per location. The expected format is
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
///
public virtual GetContentsRequest GetContents(string name)
{
return new GetContentsRequest(this.service, name);
}
/// Get the contents of the style guide.
public class GetContentsRequest : APIhubBaseServiceRequest
{
/// Constructs a new GetContents request.
public GetContentsRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the StyleGuide whose contents need to be retrieved. There is exactly
/// one style guide resource per project per location. The expected format is
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "getContents";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:contents";
/// Initializes GetContents parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/styleGuide$",
});
}
}
}
///
/// Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create
/// plugin instances.
///
/// The body of the request.
///
/// Required. The parent resource where this plugin will be created. Format:
/// `projects/{project}/locations/{location}`.
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Plugin body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
///
/// Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create
/// plugin instances.
///
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Plugin body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource where this plugin will be created. Format:
/// `projects/{project}/locations/{location}`.
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. The ID to use for the Plugin resource, which will become the final component of the
/// Plugin's resource name. This field is optional. * If provided, the same will be used. The
/// service will throw an error if the specified id is already used by another Plugin resource in
/// the API hub instance. * If not provided, a system generated id will be used. This value should
/// be 4-63 characters, overall resource name which will be of format
/// `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000
/// characters and valid characters are /a-z[0-9]-_/.
///
[Google.Apis.Util.RequestParameterAttribute("pluginId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PluginId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1Plugin Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/plugins";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("pluginId", new Google.Apis.Discovery.Parameter
{
Name = "pluginId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
///
///
/// Required. The name of the Plugin resource to delete. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the Plugin resource to delete. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+$",
});
}
}
/// Disables a plugin. The `state` of the plugin after disabling is `DISABLED`
/// The body of the request.
///
/// Required. The name of the plugin to disable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`.
///
public virtual DisableRequest Disable(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1DisablePluginRequest body, string name)
{
return new DisableRequest(this.service, body, name);
}
/// Disables a plugin. The `state` of the plugin after disabling is `DISABLED`
public class DisableRequest : APIhubBaseServiceRequest
{
/// Constructs a new Disable request.
public DisableRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1DisablePluginRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the plugin to disable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1DisablePluginRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "disable";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:disable";
/// Initializes Disable parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+$",
});
}
}
/// Enables a plugin. The `state` of the plugin after enabling is `ENABLED`
/// The body of the request.
///
/// Required. The name of the plugin to enable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`.
///
public virtual EnableRequest Enable(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1EnablePluginRequest body, string name)
{
return new EnableRequest(this.service, body, name);
}
/// Enables a plugin. The `state` of the plugin after enabling is `ENABLED`
public class EnableRequest : APIhubBaseServiceRequest
{
/// Constructs a new Enable request.
public EnableRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1EnablePluginRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the plugin to enable. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1EnablePluginRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "enable";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:enable";
/// Initializes Enable parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+$",
});
}
}
/// Get an API Hub plugin.
///
/// Required. The name of the plugin to retrieve. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`.
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Get an API Hub plugin.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the plugin to retrieve. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+$",
});
}
}
/// Get the style guide being used for linting.
///
/// Required. The name of the spec to retrieve. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
///
public virtual GetStyleGuideRequest GetStyleGuide(string name)
{
return new GetStyleGuideRequest(this.service, name);
}
/// Get the style guide being used for linting.
public class GetStyleGuideRequest : APIhubBaseServiceRequest
{
/// Constructs a new GetStyleGuide request.
public GetStyleGuideRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the spec to retrieve. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "getStyleGuide";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes GetStyleGuide parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/styleGuide$",
});
}
}
/// List all the plugins in a given project and location.
///
/// Required. The parent resource where this plugin will be created. Format:
/// `projects/{project}/locations/{location}`.
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List all the plugins in a given project and location.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent resource where this plugin will be created. Format:
/// `projects/{project}/locations/{location}`.
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of plugins. A filter expression consists of a
/// field name, a comparison operator, and a value for filtering. The value must be a string. The
/// comparison operator must be one of: `<`, `>` or `=`. Filters are not case
/// sensitive. The following fields in the `Plugins` are eligible for filtering: * `plugin_category`
/// - The category of the Plugin. Allowed comparison operators: `=`. Expressions are combined with
/// either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one
/// of the `AND` or `OR` operator can be used throughout the filter string and both the operators
/// cannot be used together. No other logical operators are supported. At most three filter fields
/// are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is
/// returned by the API. Here are a few examples: * `plugin_category = ON_RAMP` - The plugin is of
/// category on ramp.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of hub plugins to return. The service may return fewer than this
/// value. If unspecified, at most 50 hub plugins will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListPlugins` call. Provide this to retrieve
/// the subsequent page. When paginating, all other parameters (except page_size) provided to
/// `ListPlugins` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/plugins";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Update the styleGuide to be used for liniting in by API hub.
/// The body of the request.
///
/// Identifier. The name of the style guide. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
///
public virtual UpdateStyleGuideRequest UpdateStyleGuide(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1StyleGuide body, string name)
{
return new UpdateStyleGuideRequest(this.service, body, name);
}
/// Update the styleGuide to be used for liniting in by API hub.
public class UpdateStyleGuideRequest : APIhubBaseServiceRequest
{
/// Constructs a new UpdateStyleGuide request.
public UpdateStyleGuideRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1StyleGuide body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Identifier. The name of the style guide. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Optional. The list of fields to update.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1StyleGuide Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "updateStyleGuide";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes UpdateStyleGuide parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/styleGuide$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the RuntimeProjectAttachments resource.
public virtual RuntimeProjectAttachmentsResource RuntimeProjectAttachments { get; }
/// The "runtimeProjectAttachments" collection of methods.
public class RuntimeProjectAttachmentsResource
{
private const string Resource = "runtimeProjectAttachments";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public RuntimeProjectAttachmentsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Attaches a runtime project to the host project.
/// The body of the request.
///
/// Required. The parent resource for the Runtime Project Attachment. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CreateRequest Create(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1RuntimeProjectAttachment body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Attaches a runtime project to the host project.
public class CreateRequest : APIhubBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1RuntimeProjectAttachment body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource for the Runtime Project Attachment. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Required. The ID to use for the Runtime Project Attachment, which will become the final
/// component of the Runtime Project Attachment's name. The ID must be the same as the project ID of
/// the Google cloud project specified in the runtime_project_attachment.runtime_project field.
///
[Google.Apis.Util.RequestParameterAttribute("runtimeProjectAttachmentId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RuntimeProjectAttachmentId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1RuntimeProjectAttachment Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/runtimeProjectAttachments";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("runtimeProjectAttachmentId", new Google.Apis.Discovery.Parameter
{
Name = "runtimeProjectAttachmentId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Delete a runtime project attachment in the API Hub. This call will detach the runtime project from
/// the host project.
///
///
/// Required. The name of the Runtime Project Attachment to delete. Format:
/// `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
///
/// Delete a runtime project attachment in the API Hub. This call will detach the runtime project from
/// the host project.
///
public class DeleteRequest : APIhubBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the Runtime Project Attachment to delete. Format:
/// `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/runtimeProjectAttachments/[^/]+$",
});
}
}
/// Gets a runtime project attachment.
///
/// Required. The name of the API resource to retrieve. Format:
/// `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
///
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Gets a runtime project attachment.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the API resource to retrieve. Format:
/// `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+/runtimeProjectAttachments/[^/]+$",
});
}
}
/// List runtime projects attached to the host project.
///
/// Required. The parent, which owns this collection of runtime project attachments. Format:
/// `projects/{project}/locations/{location}`
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// List runtime projects attached to the host project.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent, which owns this collection of runtime project attachments. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Optional. An expression that filters the list of RuntimeProjectAttachments. A filter expression
/// consists of a field name, a comparison operator, and a value for filtering. The value must be a
/// string. All standard operators as documented at https://google.aip.dev/160 are supported. The
/// following fields in the `RuntimeProjectAttachment` are eligible for filtering: * `name` - The
/// name of the RuntimeProjectAttachment. * `create_time` - The time at which the
/// RuntimeProjectAttachment was created. The value should be in the
/// (RFC3339)[https://tools.ietf.org/html/rfc3339] format. * `runtime_project` - The Google cloud
/// project associated with the RuntimeProjectAttachment.
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
/// Optional. Hint for how to order the results.
[Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
///
/// Optional. The maximum number of runtime project attachments to return. The service may return
/// fewer than this value. If unspecified, at most 50 runtime project attachments will be returned.
/// The maximum value is 1000; values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListRuntimeProjectAttachments` call. Provide
/// this to retrieve the subsequent page. When paginating, all other parameters (except page_size)
/// provided to `ListRuntimeProjectAttachments` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}/runtimeProjectAttachments";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter
{
Name = "orderBy",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Collect API data from a source and push it to Hub's collect layer.
/// The body of the request.
///
/// Required. The regional location of the API hub instance and its resources. Format:
/// `projects/{project}/locations/{location}`
///
public virtual CollectApiDataRequest CollectApiData(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1CollectApiDataRequest body, string location)
{
return new CollectApiDataRequest(this.service, body, location);
}
/// Collect API data from a source and push it to Hub's collect layer.
public class CollectApiDataRequest : APIhubBaseServiceRequest
{
/// Constructs a new CollectApiData request.
public CollectApiDataRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1CollectApiDataRequest body, string location) : base(service)
{
Location = location;
Body = body;
InitParameters();
}
///
/// Required. The regional location of the API hub instance and its resources. Format:
/// `projects/{project}/locations/{location}`
///
[Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Location { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1CollectApiDataRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "collectApiData";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+location}:collectApiData";
/// Initializes CollectApiData parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("location", new Google.Apis.Discovery.Parameter
{
Name = "location",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
}
}
/// Gets information about a location.
/// Resource name for the location.
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// Gets information about a location.
public class GetRequest : APIhubBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// Resource name for the location.
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
}
}
/// Lists information about the supported locations for this service.
/// The resource that owns the locations collection, if applicable.
public virtual ListRequest List(string name)
{
return new ListRequest(this.service, name);
}
/// Lists information about the supported locations for this service.
public class ListRequest : APIhubBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// The resource that owns the locations collection, if applicable.
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
///
/// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented
/// otherwise. This is primarily for internal usage.
///
[Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)]
public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; }
///
/// A filter to narrow down results to a preferred subset. The filtering language accepts strings like
/// `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
///
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
///
/// The maximum number of results to return. If not set, the service selects a default.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// A page token received from the `next_page_token` field in the response. Send that page token to
/// receive the subsequent page.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}/locations";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+$",
});
RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter
{
Name = "extraLocationTypes",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Look up a runtime project attachment. This API can be called in the context of any project.
///
///
/// Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all
/// regions. Expected format: `projects/{project}/locations/{location}`.
///
public virtual LookupRuntimeProjectAttachmentRequest LookupRuntimeProjectAttachment(string name)
{
return new LookupRuntimeProjectAttachmentRequest(this.service, name);
}
///
/// Look up a runtime project attachment. This API can be called in the context of any project.
///
public class LookupRuntimeProjectAttachmentRequest : APIhubBaseServiceRequest
{
/// Constructs a new LookupRuntimeProjectAttachment request.
public LookupRuntimeProjectAttachmentRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all
/// regions. Expected format: `projects/{project}/locations/{location}`.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "lookupRuntimeProjectAttachment";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+name}:lookupRuntimeProjectAttachment";
/// Initializes LookupRuntimeProjectAttachment parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
}
}
/// Retrieve API views.
///
/// Required. The parent resource name. Format: `projects/{project}/locations/{location}`.
///
public virtual RetrieveApiViewsRequest RetrieveApiViews(string parent)
{
return new RetrieveApiViewsRequest(this.service, parent);
}
/// Retrieve API views.
public class RetrieveApiViewsRequest : APIhubBaseServiceRequest
{
/// Constructs a new RetrieveApiViews request.
public RetrieveApiViewsRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
///
/// Required. The parent resource name. Format: `projects/{project}/locations/{location}`.
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// Optional. The filter expression.
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
/// Optional. The maximum number of results to return. Default to 100.
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `RetrieveApiViews` call. Provide this to retrieve
/// the subsequent page.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Required. The view type to return.
[Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable View { get; set; }
/// Required. The view type to return.
public enum ViewEnum
{
/// The default view type.
[Google.Apis.Util.StringValueAttribute("API_VIEW_TYPE_UNSPECIFIED")]
APIVIEWTYPEUNSPECIFIED = 0,
/// The MCP server view in API hub.
[Google.Apis.Util.StringValueAttribute("MCP_SERVER")]
MCPSERVER = 1,
/// The MCP tool view in API hub.
[Google.Apis.Util.StringValueAttribute("MCP_TOOL")]
MCPTOOL = 2,
}
/// Gets the method name.
public override string MethodName => "retrieveApiViews";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "v1/{+parent}:retrieveApiViews";
/// Initializes RetrieveApiViews parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("view", new Google.Apis.Discovery.Parameter
{
Name = "view",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Search across API-Hub resources.
/// The body of the request.
///
/// Required. The resource name of the location which will be of the type
/// `projects/{project_id}/locations/{location_id}`. This field is used to identify the instance of API-Hub
/// in which resources should be searched.
///
public virtual SearchResourcesRequest SearchResources(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1SearchResourcesRequest body, string location)
{
return new SearchResourcesRequest(this.service, body, location);
}
/// Search across API-Hub resources.
public class SearchResourcesRequest : APIhubBaseServiceRequest
{
/// Constructs a new SearchResources request.
public SearchResourcesRequest(Google.Apis.Services.IClientService service, Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1SearchResourcesRequest body, string location) : base(service)
{
Location = location;
Body = body;
InitParameters();
}
///
/// Required. The resource name of the location which will be of the type
/// `projects/{project_id}/locations/{location_id}`. This field is used to identify the instance of
/// API-Hub in which resources should be searched.
///
[Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Location { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1SearchResourcesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "searchResources";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "v1/{+location}:searchResources";
/// Initializes SearchResources parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("location", new Google.Apis.Discovery.Parameter
{
Name = "location",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^projects/[^/]+/locations/[^/]+$",
});
}
}
}
}
}
namespace Google.Apis.APIhub.v1.Data
{
///
/// A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical
/// example is to use it as the request or the response type of an API method. For instance: service Foo { rpc
/// Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
///
public class Empty : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The API metadata.
public class GoogleCloudApihubV1APIMetadata : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated
/// by Hub to ensure uniqueness across all APIs across systems.
///
[Newtonsoft.Json.JsonPropertyAttribute("api")]
public virtual GoogleCloudApihubV1Api Api { get; set; }
private string _originalCreateTimeRaw;
private object _originalCreateTime;
/// Optional. Timestamp indicating when the API was created at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalCreateTime")]
public virtual string OriginalCreateTimeRaw
{
get => _originalCreateTimeRaw;
set
{
_originalCreateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalCreateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalCreateTimeDateTimeOffset instead.")]
public virtual object OriginalCreateTime
{
get => _originalCreateTime;
set
{
_originalCreateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalCreateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalCreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalCreateTimeRaw);
set => OriginalCreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The unique identifier of the API in the system where it was originally created.
[Newtonsoft.Json.JsonPropertyAttribute("originalId")]
public virtual string OriginalId { get; set; }
private string _originalUpdateTimeRaw;
private object _originalUpdateTime;
/// Required. Timestamp indicating when the API was last updated at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalUpdateTime")]
public virtual string OriginalUpdateTimeRaw
{
get => _originalUpdateTimeRaw;
set
{
_originalUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalUpdateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalUpdateTimeDateTimeOffset instead.")]
public virtual object OriginalUpdateTime
{
get => _originalUpdateTime;
set
{
_originalUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalUpdateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalUpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalUpdateTimeRaw);
set => OriginalUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The list of versions present in an API resource.
[Newtonsoft.Json.JsonPropertyAttribute("versions")]
public virtual System.Collections.Generic.IList Versions { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The details for the action to execute.
public class GoogleCloudApihubV1ActionExecutionDetail : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The action id of the plugin to execute.
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// The additional spec content for the spec. This contains the metadata and the last update time for the additional
/// spec content.
///
public class GoogleCloudApihubV1AdditionalSpecContent : Google.Apis.Requests.IDirectResponseSchema
{
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the spec content was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The labels of the spec content e.g. specboost addon version.
[Newtonsoft.Json.JsonPropertyAttribute("labels")]
public virtual System.Collections.Generic.IDictionary Labels { get; set; }
/// Required. The type of the spec content.
[Newtonsoft.Json.JsonPropertyAttribute("specContentType")]
public virtual string SpecContentType { get; set; }
/// Optional. The additional spec contents.
[Newtonsoft.Json.JsonPropertyAttribute("specContents")]
public virtual GoogleCloudApihubV1SpecContents SpecContents { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the spec content was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Addon resource.
public class GoogleCloudApihubV1Addon : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The configuration of the addon.
[Newtonsoft.Json.JsonPropertyAttribute("config")]
public virtual GoogleCloudApihubV1AddonConfig Config { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the addon was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Required. The data source on which the addon operates. This determines which field in the `config` oneof is
/// used.
///
[Newtonsoft.Json.JsonPropertyAttribute("dataSource")]
public virtual string DataSource { get; set; }
/// Optional. The description of the addon.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the addon.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Identifier. The name of the addon to enable. Format:
/// `projects/{project}/locations/{location}/addons/{addon}`.
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Output only. The state of the addon.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the addon was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Configuration for the addon.
public class GoogleCloudApihubV1AddonConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Configuration for addons which act on all data in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("allDataAddonConfig")]
public virtual GoogleCloudApihubV1AllDataAddonConfig AllDataAddonConfig { get; set; }
/// Configuration for gateway plugin addons.
[Newtonsoft.Json.JsonPropertyAttribute("gatewayPluginAddonConfig")]
public virtual GoogleCloudApihubV1GatewayPluginAddonConfig GatewayPluginAddonConfig { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Configuration for addons which act on all data in the API hub. This is used to specify if the addon is enabled
/// for all data in the API hub.
///
public class GoogleCloudApihubV1AllDataAddonConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. If true, the addon is enabled for all data in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("enabled")]
public virtual System.Nullable Enabled { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The value that can be assigned to the attribute when the data type is enum.
public class GoogleCloudApihubV1AllowedValue : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The detailed description of the allowed value.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the allowed value.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error
/// if the specified id is already used by another allowed value in the same attribute resource. * If not
/// provided, a system generated id derived from the display name will be used. In this case, the service will
/// handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be
/// 4-63 characters, and valid characters are /a-z-/.
///
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
///
/// Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true
/// for System defined attributes.
///
[Newtonsoft.Json.JsonPropertyAttribute("immutable")]
public virtual System.Nullable Immutable { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An API resource in the API Hub.
public class GoogleCloudApihubV1Api : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The api functional requirements associated with the API resource. Carinality is 1 for this
/// attribute. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-api-functional-requirements` attribute. The value
/// of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud
/// Storage object, not a directory.
///
[Newtonsoft.Json.JsonPropertyAttribute("apiFunctionalRequirements")]
public virtual GoogleCloudApihubV1AttributeValues ApiFunctionalRequirements { get; set; }
///
/// Optional. The api requirement doc associated with the API resource. Carinality is 1 for this attribute. This
/// maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-api-requirements` attribute. The value of the
/// attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage
/// object, not a directory.
///
[Newtonsoft.Json.JsonPropertyAttribute("apiRequirements")]
public virtual GoogleCloudApihubV1AttributeValues ApiRequirements { get; set; }
///
/// Optional. The style of the API. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-api-style` attribute. The number of values for
/// this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute
/// API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("apiStyle")]
public virtual GoogleCloudApihubV1AttributeValues ApiStyle { get; set; }
///
/// Optional. The api technical requirements associated with the API resource. Carinality is 1 for this
/// attribute. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-api-technical-requirements` attribute. The value
/// of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud
/// Storage object, not a directory.
///
[Newtonsoft.Json.JsonPropertyAttribute("apiTechnicalRequirements")]
public virtual GoogleCloudApihubV1AttributeValues ApiTechnicalRequirements { get; set; }
///
/// Optional. The list of user defined attributes associated with the API resource. The key is the attribute
/// name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value
/// is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
///
/// Optional. The business unit owning the API. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-business-unit` attribute. The number of values
/// for this attribute will be based on the cardinality of the attribute. The same can be retrieved via
/// GetAttribute API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("businessUnit")]
public virtual GoogleCloudApihubV1AttributeValues BusinessUnit { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the API resource was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The description of the API resource.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the API resource.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Optional. The documentation for the API resource.
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
///
/// Optional. Fingerprint of the API resource. This must be unique for each API resource. It can neither be
/// unset nor be updated to an existing fingerprint of another API resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("fingerprint")]
public virtual string Fingerprint { get; set; }
///
/// Optional. The maturity level of the API. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-maturity-level` attribute. The number of values
/// for this attribute will be based on the cardinality of the attribute. The same can be retrieved via
/// GetAttribute API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("maturityLevel")]
public virtual GoogleCloudApihubV1AttributeValues MaturityLevel { get; set; }
///
/// Identifier. The name of the API resource in the API Hub. Format:
/// `projects/{project}/locations/{location}/apis/{api}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Optional. Owner details for the API resource.
[Newtonsoft.Json.JsonPropertyAttribute("owner")]
public virtual GoogleCloudApihubV1Owner Owner { get; set; }
///
/// Optional. The selected version for an API resource. This can be used when special handling is needed on
/// client side for particular version of the API. Format is
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Newtonsoft.Json.JsonPropertyAttribute("selectedVersion")]
public virtual string SelectedVersion { get; set; }
/// Output only. The list of sources and metadata from the sources of the API resource.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual System.Collections.Generic.IList SourceMetadata { get; set; }
///
/// Optional. The target users for the API. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-target-user` attribute. The number of values for
/// this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute
/// API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("targetUser")]
public virtual GoogleCloudApihubV1AttributeValues TargetUser { get; set; }
///
/// Optional. The team owning the API. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-team` attribute. The number of values for this
/// attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API.
/// All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("team")]
public virtual GoogleCloudApihubV1AttributeValues Team { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the API resource was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Output only. The list of versions present in an API resource. Note: An API resource can be associated with
/// more than 1 version. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Newtonsoft.Json.JsonPropertyAttribute("versions")]
public virtual System.Collections.Generic.IList Versions { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The API data to be collected.
public class GoogleCloudApihubV1ApiData : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The list of API metadata.
[Newtonsoft.Json.JsonPropertyAttribute("apiMetadataList")]
public virtual GoogleCloudApihubV1ApiMetadataList ApiMetadataList { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is
/// allowed for each project.
///
public class GoogleCloudApihubV1ApiHubInstance : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Config of the ApiHub instance.
[Newtonsoft.Json.JsonPropertyAttribute("config")]
public virtual GoogleCloudApihubV1Config Config { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. Creation timestamp.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. Description of the ApiHub instance.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for
/// more details. https://cloud.google.com/compute/docs/labeling-resources
///
[Newtonsoft.Json.JsonPropertyAttribute("labels")]
public virtual System.Collections.Generic.IDictionary Labels { get; set; }
///
/// Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Output only. The current state of the ApiHub instance.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
///
/// Output only. Extra information about ApiHub instance state. Currently the message would be populated when
/// state is `FAILED`.
///
[Newtonsoft.Json.JsonPropertyAttribute("stateMessage")]
public virtual string StateMessage { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. Last update timestamp.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version
/// resources stored in API-Hub.
///
public class GoogleCloudApihubV1ApiHubResource : Google.Apis.Requests.IDirectResponseSchema
{
///
/// This represents Api resource in search results. Only name, display_name, description and owner fields are
/// populated in search results.
///
[Newtonsoft.Json.JsonPropertyAttribute("api")]
public virtual GoogleCloudApihubV1Api Api { get; set; }
///
/// This represents Definition resource in search results. Only name field is populated in search results.
///
[Newtonsoft.Json.JsonPropertyAttribute("definition")]
public virtual GoogleCloudApihubV1Definition Definition { get; set; }
///
/// This represents Deployment resource in search results. Only name, display_name, description, deployment_type
/// and api_versions fields are populated in search results.
///
[Newtonsoft.Json.JsonPropertyAttribute("deployment")]
public virtual GoogleCloudApihubV1Deployment Deployment { get; set; }
///
/// This represents ApiOperation resource in search results. Only name, description, spec and details fields are
/// populated in search results.
///
[Newtonsoft.Json.JsonPropertyAttribute("operation")]
public virtual GoogleCloudApihubV1ApiOperation Operation { get; set; }
///
/// This represents Spec resource in search results. Only name, display_name, description, spec_type and
/// documentation fields are populated in search results.
///
[Newtonsoft.Json.JsonPropertyAttribute("spec")]
public virtual GoogleCloudApihubV1Spec Spec { get; set; }
///
/// This represents Version resource in search results. Only name, display_name, description, lifecycle,
/// compliance and accreditation fields are populated in search results.
///
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual GoogleCloudApihubV1Version Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Config for authentication with API key.
public class GoogleCloudApihubV1ApiKeyConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The name of the SecretManager secret version resource storing the API key. Format:
/// `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission
/// should be granted to the service account accessing the secret.
///
[Newtonsoft.Json.JsonPropertyAttribute("apiKey")]
public virtual GoogleCloudApihubV1Secret ApiKey { get; set; }
/// Required. The location of the API key. The default value is QUERY.
[Newtonsoft.Json.JsonPropertyAttribute("httpElementLocation")]
public virtual string HttpElementLocation { get; set; }
///
/// Required. The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=",
/// "api_key" would be the parameter name.
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The message to hold repeated API metadata.
public class GoogleCloudApihubV1ApiMetadataList : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The list of API metadata.
[Newtonsoft.Json.JsonPropertyAttribute("apiMetadata")]
public virtual System.Collections.Generic.IList ApiMetadata { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Represents an operation contained in an API version in the API Hub. An operation is added/updated/deleted in an
/// API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, an
/// operation will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec.
/// Alternatively operations can be managed via create,update and delete APIs, creation of apiOperation can be
/// possible only for version with no parsed operations and update/delete can be possible only for operations
/// created via create API.
///
public class GoogleCloudApihubV1ApiOperation : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The list of user defined attributes associated with the API operation resource. The key is the
/// attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`.
/// The value is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the operation was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Optional. Operation details. Note: Even though this field is optional, it is required for CreateApiOperation
/// API and we will fail the request if not provided.
///
[Newtonsoft.Json.JsonPropertyAttribute("details")]
public virtual GoogleCloudApihubV1OperationDetails Details { get; set; }
///
/// Identifier. The name of the operation. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Output only. The list of sources and metadata from the sources of the API operation.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual System.Collections.Generic.IList SourceMetadata { get; set; }
///
/// Output only. The name of the spec will be of the format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` Note:The name of the
/// spec will be empty if the operation is created via CreateApiOperation API.
///
[Newtonsoft.Json.JsonPropertyAttribute("spec")]
public virtual string Spec { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the operation was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The view of an API.
public class GoogleCloudApihubV1ApiView : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. MCP server view.
[Newtonsoft.Json.JsonPropertyAttribute("mcpServerView")]
public virtual GoogleCloudApihubV1FlattenedApiVersionDeploymentView McpServerView { get; set; }
/// Output only. MCP tools view.
[Newtonsoft.Json.JsonPropertyAttribute("mcpToolView")]
public virtual GoogleCloudApihubV1FlattenedApiVersionOperationDeploymentView McpToolView { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Configuration for Apigee Edge gateways. Applicability of a filter is determined by the filter being provided. If
/// none of the filters are provided the addon will be enabled for all data brought in by the gateway plugin
/// instance.
///
public class GoogleCloudApihubV1ApigeeEdgeConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The filter to apply on the resources managed by the gateway plugin instance. If provided this
/// filter applies environment specific filtering.
///
[Newtonsoft.Json.JsonPropertyAttribute("environmentFilter")]
public virtual GoogleCloudApihubV1EnvironmentFilter EnvironmentFilter { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Configuration for Apigee OPDK gateways. Applicability of a filter is determined by the filter being provided. If
/// none of the filters are provided the addon will be enabled for all data brought in by the gateway plugin
/// instance.
///
public class GoogleCloudApihubV1ApigeeOPDKConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The filter to apply on the resources managed by the gateway plugin instance. If provided this
/// filter applies environment specific filtering.
///
[Newtonsoft.Json.JsonPropertyAttribute("environmentFilter")]
public virtual GoogleCloudApihubV1EnvironmentFilter EnvironmentFilter { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Configuration for Apigee X and Apigee Hybrid gateways. Applicability of a filter is determined by the filter
/// being provided. If none of the filters are provided the addon will be enabled for all data brought in by the
/// gateway plugin instance.
///
public class GoogleCloudApihubV1ApigeeXHybridConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The filter to apply on the resources managed by the gateway plugin instance. If provided this
/// filter applies environment specific filtering.
///
[Newtonsoft.Json.JsonPropertyAttribute("environmentFilter")]
public virtual GoogleCloudApihubV1EnvironmentFilter EnvironmentFilter { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The details of the Application Integration endpoint to be triggered for curation.
public class GoogleCloudApihubV1ApplicationIntegrationEndpointDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The API trigger ID of the Application Integration workflow.
[Newtonsoft.Json.JsonPropertyAttribute("triggerId")]
public virtual string TriggerId { get; set; }
///
/// Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format:
/// `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or
/// `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
///
[Newtonsoft.Json.JsonPropertyAttribute("uri")]
public virtual string Uri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in
/// the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created
/// by users.
///
public class GoogleCloudApihubV1Attribute : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The list of allowed values when the attribute value is of type enum. This is required when the
/// data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
///
[Newtonsoft.Json.JsonPropertyAttribute("allowedValues")]
public virtual System.Collections.Generic.IList AllowedValues { get; set; }
///
/// Optional. The maximum number of values that the attribute can have when associated with an API Hub resource.
/// Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If
/// not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("cardinality")]
public virtual System.Nullable Cardinality { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the attribute was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Required. The type of the data of the attribute.
[Newtonsoft.Json.JsonPropertyAttribute("dataType")]
public virtual string DataType { get; set; }
/// Output only. The definition type of the attribute.
[Newtonsoft.Json.JsonPropertyAttribute("definitionType")]
public virtual string DefinitionType { get; set; }
/// Optional. The description of the attribute.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the attribute.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope.
/// Only System defined attributes can be mandatory.
///
[Newtonsoft.Json.JsonPropertyAttribute("mandatory")]
public virtual System.Nullable Mandatory { get; set; }
///
/// Identifier. The name of the attribute in the API Hub. Format:
/// `projects/{project}/locations/{location}/attributes/{attribute}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can
/// be linked.
///
[Newtonsoft.Json.JsonPropertyAttribute("scope")]
public virtual string Scope { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the attribute was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The attribute values associated with resource.
public class GoogleCloudApihubV1AttributeValues : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Output only. The name of the attribute. Format:
/// projects/{project}/locations/{location}/attributes/{attribute}
///
[Newtonsoft.Json.JsonPropertyAttribute("attribute")]
public virtual string Attribute { get; set; }
/// The attribute values associated with a resource in case attribute data type is enum.
[Newtonsoft.Json.JsonPropertyAttribute("enumValues")]
public virtual GoogleCloudApihubV1EnumAttributeValues EnumValues { get; set; }
/// The attribute values associated with a resource in case attribute data type is JSON.
[Newtonsoft.Json.JsonPropertyAttribute("jsonValues")]
public virtual GoogleCloudApihubV1StringAttributeValues JsonValues { get; set; }
/// The attribute values associated with a resource in case attribute data type is string.
[Newtonsoft.Json.JsonPropertyAttribute("stringValues")]
public virtual GoogleCloudApihubV1StringAttributeValues StringValues { get; set; }
///
/// The attribute values associated with a resource in case attribute data type is URL, URI or IP, like
/// gs://bucket-name/object-name.
///
[Newtonsoft.Json.JsonPropertyAttribute("uriValues")]
public virtual GoogleCloudApihubV1StringAttributeValues UriValues { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// AuthConfig represents the authentication information.
public class GoogleCloudApihubV1AuthConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Api Key Config.
[Newtonsoft.Json.JsonPropertyAttribute("apiKeyConfig")]
public virtual GoogleCloudApihubV1ApiKeyConfig ApiKeyConfig { get; set; }
/// Required. The authentication type.
[Newtonsoft.Json.JsonPropertyAttribute("authType")]
public virtual string AuthType { get; set; }
/// Google Service Account.
[Newtonsoft.Json.JsonPropertyAttribute("googleServiceAccountConfig")]
public virtual GoogleCloudApihubV1GoogleServiceAccountConfig GoogleServiceAccountConfig { get; set; }
/// Oauth2.0 Client Credentials.
[Newtonsoft.Json.JsonPropertyAttribute("oauth2ClientCredentialsConfig")]
public virtual GoogleCloudApihubV1Oauth2ClientCredentialsConfig Oauth2ClientCredentialsConfig { get; set; }
/// User Password.
[Newtonsoft.Json.JsonPropertyAttribute("userPasswordConfig")]
public virtual GoogleCloudApihubV1UserPasswordConfig UserPasswordConfig { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// AuthConfigTemplate represents the authentication template for a plugin.
public class GoogleCloudApihubV1AuthConfigTemplate : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The service account of the plugin hosting service. This service account should be granted the
/// required permissions on the Auth Config parameters provided while creating the plugin instances
/// corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager
/// secret, the service account should be granted the secretmanager.versions.access permission on the
/// corresponding secret, if the plugin instance auth config contains a service account, the service account
/// should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
///
[Newtonsoft.Json.JsonPropertyAttribute("serviceAccount")]
public virtual GoogleCloudApihubV1GoogleServiceAccountConfig ServiceAccount { get; set; }
/// Required. The list of authentication types supported by the plugin.
[Newtonsoft.Json.JsonPropertyAttribute("supportedAuthTypes")]
public virtual System.Collections.Generic.IList SupportedAuthTypes { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The CollectApiData method's request.
public class GoogleCloudApihubV1CollectApiDataRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The action ID to be used for collecting the API data. This should map to one of the action IDs
/// specified in action configs in the plugin.
///
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
/// Required. The API data to be collected.
[Newtonsoft.Json.JsonPropertyAttribute("apiData")]
public virtual GoogleCloudApihubV1ApiData ApiData { get; set; }
/// Required. The type of collection. Applies to all entries in api_data.
[Newtonsoft.Json.JsonPropertyAttribute("collectionType")]
public virtual string CollectionType { get; set; }
///
/// Required. The plugin instance collecting the API data. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
///
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstance")]
public virtual string PluginInstance { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Available configurations to provision an ApiHub Instance.
public class GoogleCloudApihubV1Config : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow
/// the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location
/// must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
///
[Newtonsoft.Json.JsonPropertyAttribute("cmekKeyName")]
public virtual string CmekKeyName { get; set; }
///
/// Optional. If true, the search will be disabled for the instance. The default value is false.
///
[Newtonsoft.Json.JsonPropertyAttribute("disableSearch")]
public virtual System.Nullable DisableSearch { get; set; }
///
/// Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be
/// provided. If no encryption type is provided, GMEK will be used.
///
[Newtonsoft.Json.JsonPropertyAttribute("encryptionType")]
public virtual string EncryptionType { get; set; }
/// Optional. The name of the Vertex AI location where the data store is stored.
[Newtonsoft.Json.JsonPropertyAttribute("vertexLocation")]
public virtual string VertexLocation { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// ConfigTemplate represents the configuration template for a plugin.
public class GoogleCloudApihubV1ConfigTemplate : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The list of additional configuration variables for the plugin's configuration.
[Newtonsoft.Json.JsonPropertyAttribute("additionalConfigTemplate")]
public virtual System.Collections.Generic.IList AdditionalConfigTemplate { get; set; }
/// Optional. The authentication template for the plugin.
[Newtonsoft.Json.JsonPropertyAttribute("authConfigTemplate")]
public virtual GoogleCloudApihubV1AuthConfigTemplate AuthConfigTemplate { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// ConfigValueOption represents an option for a config variable of type enum or multi select.
public class GoogleCloudApihubV1ConfigValueOption : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Description of the option.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. Display name of the option.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Required. Id of the option.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig,
/// based on a ConfigVariableTemplate.
///
public class GoogleCloudApihubV1ConfigVariable : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The config variable value in case of config variable of type boolean.
[Newtonsoft.Json.JsonPropertyAttribute("boolValue")]
public virtual System.Nullable BoolValue { get; set; }
/// Optional. The config variable value in case of config variable of type enum.
[Newtonsoft.Json.JsonPropertyAttribute("enumValue")]
public virtual GoogleCloudApihubV1ConfigValueOption EnumValue { get; set; }
/// Optional. The config variable value in case of config variable of type integer.
[Newtonsoft.Json.JsonPropertyAttribute("intValue")]
public virtual System.Nullable IntValue { get; set; }
/// Output only. Key will be the id to uniquely identify the config variable.
[Newtonsoft.Json.JsonPropertyAttribute("key")]
public virtual string Key { get; set; }
/// Optional. The config variable value in case of config variable of type multi integer.
[Newtonsoft.Json.JsonPropertyAttribute("multiIntValues")]
public virtual GoogleCloudApihubV1MultiIntValues MultiIntValues { get; set; }
/// Optional. The config variable value in case of config variable of type multi select.
[Newtonsoft.Json.JsonPropertyAttribute("multiSelectValues")]
public virtual GoogleCloudApihubV1MultiSelectValues MultiSelectValues { get; set; }
/// Optional. The config variable value in case of config variable of type multi string.
[Newtonsoft.Json.JsonPropertyAttribute("multiStringValues")]
public virtual GoogleCloudApihubV1MultiStringValues MultiStringValues { get; set; }
/// Optional. The config variable value in case of config variable of type secret.
[Newtonsoft.Json.JsonPropertyAttribute("secretValue")]
public virtual GoogleCloudApihubV1Secret SecretValue { get; set; }
/// Optional. The config variable value in case of config variable of type string.
[Newtonsoft.Json.JsonPropertyAttribute("stringValue")]
public virtual string StringValue { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
///
public class GoogleCloudApihubV1ConfigVariableTemplate : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Description.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Optional. Enum options. To be populated if `ValueType` is `ENUM`.
[Newtonsoft.Json.JsonPropertyAttribute("enumOptions")]
public virtual System.Collections.Generic.IList EnumOptions { get; set; }
/// Required. ID of the config variable. Must be unique within the configuration.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
[Newtonsoft.Json.JsonPropertyAttribute("multiSelectOptions")]
public virtual System.Collections.Generic.IList MultiSelectOptions { get; set; }
///
/// Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
///
[Newtonsoft.Json.JsonPropertyAttribute("required")]
public virtual System.Nullable Required { get; set; }
///
/// Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
///
[Newtonsoft.Json.JsonPropertyAttribute("validationRegex")]
public virtual string ValidationRegex { get; set; }
/// Required. Type of the parameter: string, int, bool etc.
[Newtonsoft.Json.JsonPropertyAttribute("valueType")]
public virtual string ValueType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A curation resource in the API Hub.
public class GoogleCloudApihubV1Curation : Google.Apis.Requests.IDirectResponseSchema
{
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the curation was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The description of the curation.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the curation.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Required. The endpoint to be triggered for curation.
[Newtonsoft.Json.JsonPropertyAttribute("endpoint")]
public virtual GoogleCloudApihubV1Endpoint Endpoint { get; set; }
///
/// Output only. The error code of the last execution of the curation. The error code is populated only when the
/// last execution state is failed.
///
[Newtonsoft.Json.JsonPropertyAttribute("lastExecutionErrorCode")]
public virtual string LastExecutionErrorCode { get; set; }
///
/// Output only. Error message describing the failure, if any, during the last execution of the curation.
///
[Newtonsoft.Json.JsonPropertyAttribute("lastExecutionErrorMessage")]
public virtual string LastExecutionErrorMessage { get; set; }
/// Output only. The last execution state of the curation.
[Newtonsoft.Json.JsonPropertyAttribute("lastExecutionState")]
public virtual string LastExecutionState { get; set; }
///
/// Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Output only. The plugin instances and associated actions that are using the curation. Note: A particular
/// curation could be used by multiple plugin instances or multiple actions in a plugin instance.
///
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstanceActions")]
public virtual System.Collections.Generic.IList PluginInstanceActions { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the curation was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The curation information for this plugin instance.
public class GoogleCloudApihubV1CurationConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The curation type for this plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("curationType")]
public virtual string CurationType { get; set; }
/// Optional. Custom curation information for this plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("customCuration")]
public virtual GoogleCloudApihubV1CustomCuration CustomCuration { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Custom curation information for this plugin instance.
public class GoogleCloudApihubV1CustomCuration : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The unique name of the curation resource. This will be the name of the curation resource in the
/// format: `projects/{project}/locations/{location}/curations/{curation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("curation")]
public virtual string Curation { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Represents a definition for example schema, request, response definitions contained in an API version. A
/// definition is added/updated/deleted in an API version when a new spec is added or an existing spec is
/// updated/deleted in a version. Currently, definition will be created only corresponding to OpenAPI spec as
/// parsing is supported for OpenAPI spec. Also, within OpenAPI spec, only `schema` object is supported.
///
public class GoogleCloudApihubV1Definition : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The list of user defined attributes associated with the definition resource. The key is the
/// attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`.
/// The value is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the definition was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Identifier. The name of the definition. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Output only. The value of a schema definition.
[Newtonsoft.Json.JsonPropertyAttribute("schema")]
public virtual GoogleCloudApihubV1Schema Schema { get; set; }
///
/// Output only. The name of the spec from where the definition was parsed. Format is
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Newtonsoft.Json.JsonPropertyAttribute("spec")]
public virtual string Spec { get; set; }
/// Output only. The type of the definition.
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the definition was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier
/// entity. A dependency can be defined between two Operations or between an Operation and External API.
///
public class GoogleCloudApihubV1Dependency : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The list of user defined attributes associated with the dependency resource. The key is the
/// attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`.
/// The value is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
/// Required. Immutable. The entity acting as the consumer in the dependency.
[Newtonsoft.Json.JsonPropertyAttribute("consumer")]
public virtual GoogleCloudApihubV1DependencyEntityReference Consumer { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the dependency was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. Human readable description corresponding of the dependency.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Output only. Discovery mode of the dependency.
[Newtonsoft.Json.JsonPropertyAttribute("discoveryMode")]
public virtual string DiscoveryMode { get; set; }
/// Output only. Error details of a dependency if the system has detected it internally.
[Newtonsoft.Json.JsonPropertyAttribute("errorDetail")]
public virtual GoogleCloudApihubV1DependencyErrorDetail ErrorDetail { get; set; }
///
/// Identifier. The name of the dependency in the API Hub. Format:
/// `projects/{project}/locations/{location}/dependencies/{dependency}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Output only. State of the dependency.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// Required. Immutable. The entity acting as the supplier in the dependency.
[Newtonsoft.Json.JsonPropertyAttribute("supplier")]
public virtual GoogleCloudApihubV1DependencyEntityReference Supplier { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the dependency was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Reference to an entity participating in a dependency.
public class GoogleCloudApihubV1DependencyEntityReference : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. Display name of the entity.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// The resource name of an external API in the API Hub. Format:
/// `projects/{project}/locations/{location}/externalApis/{external_api}`
///
[Newtonsoft.Json.JsonPropertyAttribute("externalApiResourceName")]
public virtual string ExternalApiResourceName { get; set; }
///
/// The resource name of an operation in the API Hub. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("operationResourceName")]
public virtual string OperationResourceName { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Details describing error condition of a dependency.
public class GoogleCloudApihubV1DependencyErrorDetail : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Error in the dependency.
[Newtonsoft.Json.JsonPropertyAttribute("error")]
public virtual string Error { get; set; }
private string _errorTimeRaw;
private object _errorTime;
/// Optional. Timestamp at which the error was found.
[Newtonsoft.Json.JsonPropertyAttribute("errorTime")]
public virtual string ErrorTimeRaw
{
get => _errorTimeRaw;
set
{
_errorTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_errorTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ErrorTimeDateTimeOffset instead.")]
public virtual object ErrorTime
{
get => _errorTime;
set
{
_errorTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_errorTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? ErrorTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ErrorTimeRaw);
set => ErrorTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Details of the deployment where APIs are hosted. A deployment could represent an Apigee proxy, API gateway,
/// other Google Cloud services or non-Google Cloud services as well. A deployment entity is a root level entity in
/// the API hub and exists independent of any API.
///
public class GoogleCloudApihubV1Deployment : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Output only. The API versions linked to this deployment. Note: A particular deployment could be linked to
/// multiple different API versions (of same or different APIs).
///
[Newtonsoft.Json.JsonPropertyAttribute("apiVersions")]
public virtual System.Collections.Generic.IList ApiVersions { get; set; }
///
/// Optional. The list of user defined attributes associated with the deployment resource. The key is the
/// attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`.
/// The value is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the deployment was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Required. The type of deployment. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-deployment-type` attribute. The number of values
/// for this attribute will be based on the cardinality of the attribute. The same can be retrieved via
/// GetAttribute API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("deploymentType")]
public virtual GoogleCloudApihubV1AttributeValues DeploymentType { get; set; }
/// Optional. The description of the deployment.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the deployment.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Optional. The documentation of the deployment.
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
///
/// Required. The endpoints at which this deployment resource is listening for API requests. This could be a
/// list of complete URIs, hostnames or an IP addresses.
///
[Newtonsoft.Json.JsonPropertyAttribute("endpoints")]
public virtual System.Collections.Generic.IList Endpoints { get; set; }
///
/// Optional. The environment mapping to this deployment. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-environment` attribute. The number of values for
/// this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute
/// API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("environment")]
public virtual GoogleCloudApihubV1AttributeValues Environment { get; set; }
///
/// Optional. The uri where users can navigate to for the management of the deployment. This maps to the
/// following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-management-url` The number of values for this
/// attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API.
/// The value of the attribute should be a valid URL.
///
[Newtonsoft.Json.JsonPropertyAttribute("managementUrl")]
public virtual GoogleCloudApihubV1AttributeValues ManagementUrl { get; set; }
///
/// Identifier. The name of the deployment. Format:
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Required. The resource URI identifies the deployment within its gateway. For Apigee gateways, its
/// recommended to use the format: organizations/{org}/environments/{env}/apis/{api}. For ex: if a proxy with
/// name `orders` is deployed in `staging` environment of `cymbal` organization, the resource URI would be:
/// `organizations/cymbal/environments/staging/apis/orders`.
///
[Newtonsoft.Json.JsonPropertyAttribute("resourceUri")]
public virtual string ResourceUri { get; set; }
///
/// Optional. The SLO for this deployment. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-slo` attribute. The number of values for this
/// attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API.
/// All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("slo")]
public virtual GoogleCloudApihubV1AttributeValues Slo { get; set; }
///
/// Optional. The environment at source for the deployment. For example: prod, dev, staging, etc.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceEnvironment")]
public virtual string SourceEnvironment { get; set; }
/// Output only. The list of sources and metadata from the sources of the deployment.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual System.Collections.Generic.IList SourceMetadata { get; set; }
///
/// Optional. The project to which the deployment belongs. For GCP gateways, this will refer to the project
/// identifier. For others like Edge/OPDK, this will refer to the org identifier.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceProject")]
public virtual string SourceProject { get; set; }
///
/// Optional. The uri where additional source specific information for this deployment can be found. This maps
/// to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-source-uri` The number of values for this
/// attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API.
/// The value of the attribute should be a valid URI, and in case of Cloud Storage URI, it should point to a
/// Cloud Storage object, not a directory.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceUri")]
public virtual GoogleCloudApihubV1AttributeValues SourceUri { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the deployment was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The metadata associated with a deployment.
public class GoogleCloudApihubV1DeploymentMetadata : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The deployment resource to be pushed to Hub's collect layer. The ID of the deployment will be
/// generated by Hub.
///
[Newtonsoft.Json.JsonPropertyAttribute("deployment")]
public virtual GoogleCloudApihubV1Deployment Deployment { get; set; }
private string _originalCreateTimeRaw;
private object _originalCreateTime;
/// Optional. Timestamp indicating when the deployment was created at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalCreateTime")]
public virtual string OriginalCreateTimeRaw
{
get => _originalCreateTimeRaw;
set
{
_originalCreateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalCreateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalCreateTimeDateTimeOffset instead.")]
public virtual object OriginalCreateTime
{
get => _originalCreateTime;
set
{
_originalCreateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalCreateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalCreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalCreateTimeRaw);
set => OriginalCreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Optional. The unique identifier of the deployment in the system where it was originally created.
///
[Newtonsoft.Json.JsonPropertyAttribute("originalId")]
public virtual string OriginalId { get; set; }
private string _originalUpdateTimeRaw;
private object _originalUpdateTime;
/// Required. Timestamp indicating when the deployment was last updated at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalUpdateTime")]
public virtual string OriginalUpdateTimeRaw
{
get => _originalUpdateTimeRaw;
set
{
_originalUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalUpdateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalUpdateTimeDateTimeOffset instead.")]
public virtual object OriginalUpdateTime
{
get => _originalUpdateTime;
set
{
_originalUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalUpdateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalUpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalUpdateTimeRaw);
set => OriginalUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The DisablePluginInstanceAction method's request.
public class GoogleCloudApihubV1DisablePluginInstanceActionRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The action id to disable.
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The DisablePlugin method's request.
public class GoogleCloudApihubV1DisablePluginRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Respresents an API Observation observed in one of the sources.
public class GoogleCloudApihubV1DiscoveredApiObservation : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The number of observed API Operations.
[Newtonsoft.Json.JsonPropertyAttribute("apiOperationCount")]
public virtual System.Nullable ApiOperationCount { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. Create time stamp of the observation in API Hub.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The hostname of requests processed for this Observation.
[Newtonsoft.Json.JsonPropertyAttribute("hostname")]
public virtual string Hostname { get; set; }
/// Output only. The number of known API Operations.
[Newtonsoft.Json.JsonPropertyAttribute("knownOperationsCount")]
public virtual System.Nullable KnownOperationsCount { get; set; }
private string _lastEventDetectedTimeRaw;
private object _lastEventDetectedTime;
/// Optional. Last event detected time stamp
[Newtonsoft.Json.JsonPropertyAttribute("lastEventDetectedTime")]
public virtual string LastEventDetectedTimeRaw
{
get => _lastEventDetectedTimeRaw;
set
{
_lastEventDetectedTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_lastEventDetectedTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use LastEventDetectedTimeDateTimeOffset instead.")]
public virtual object LastEventDetectedTime
{
get => _lastEventDetectedTime;
set
{
_lastEventDetectedTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_lastEventDetectedTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? LastEventDetectedTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(LastEventDetectedTimeRaw);
set => LastEventDetectedTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Identifier. The name of the discovered API Observation. Format:
/// `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Optional. For an observation pushed from a gcp resource, this would be the gcp project id.
///
[Newtonsoft.Json.JsonPropertyAttribute("origin")]
public virtual string Origin { get; set; }
///
/// Optional. The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can
/// include port information. Examples: `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
///
[Newtonsoft.Json.JsonPropertyAttribute("serverIps")]
public virtual System.Collections.Generic.IList ServerIps { get; set; }
/// Optional. The location of the observation source.
[Newtonsoft.Json.JsonPropertyAttribute("sourceLocations")]
public virtual System.Collections.Generic.IList SourceLocations { get; set; }
/// Output only. The metadata of the source from which the observation was collected.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual GoogleCloudApihubV1SourceMetadata SourceMetadata { get; set; }
/// Optional. The type of the source from which the observation was collected.
[Newtonsoft.Json.JsonPropertyAttribute("sourceTypes")]
public virtual System.Collections.Generic.IList SourceTypes { get; set; }
/// Optional. Style of ApiObservation
[Newtonsoft.Json.JsonPropertyAttribute("style")]
public virtual string Style { get; set; }
/// Output only. The number of unknown API Operations.
[Newtonsoft.Json.JsonPropertyAttribute("unknownOperationsCount")]
public virtual System.Nullable UnknownOperationsCount { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. Update time stamp of the observation in API Hub.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// DiscoveredApiOperation represents an API Operation observed in one of the sources.
public class GoogleCloudApihubV1DiscoveredApiOperation : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The classification of the discovered API operation.
[Newtonsoft.Json.JsonPropertyAttribute("classification")]
public virtual string Classification { get; set; }
/// Optional. The number of occurrences of this API Operation.
[Newtonsoft.Json.JsonPropertyAttribute("count")]
public virtual System.Nullable Count { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. Create time stamp of the discovered API operation in API Hub.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
private string _firstSeenTimeRaw;
private object _firstSeenTime;
/// Optional. First seen time stamp
[Newtonsoft.Json.JsonPropertyAttribute("firstSeenTime")]
public virtual string FirstSeenTimeRaw
{
get => _firstSeenTimeRaw;
set
{
_firstSeenTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_firstSeenTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use FirstSeenTimeDateTimeOffset instead.")]
public virtual object FirstSeenTime
{
get => _firstSeenTime;
set
{
_firstSeenTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_firstSeenTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? FirstSeenTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(FirstSeenTimeRaw);
set => FirstSeenTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. An HTTP Operation.
[Newtonsoft.Json.JsonPropertyAttribute("httpOperation")]
public virtual GoogleCloudApihubV1HttpOperationDetails HttpOperation { get; set; }
private string _lastSeenTimeRaw;
private object _lastSeenTime;
/// Optional. Last seen time stamp
[Newtonsoft.Json.JsonPropertyAttribute("lastSeenTime")]
public virtual string LastSeenTimeRaw
{
get => _lastSeenTimeRaw;
set
{
_lastSeenTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_lastSeenTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use LastSeenTimeDateTimeOffset instead.")]
public virtual object LastSeenTime
{
get => _lastSeenTime;
set
{
_lastSeenTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_lastSeenTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? LastSeenTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(LastSeenTimeRaw);
set => LastSeenTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Output only. The list of matched results for the discovered API operation. This will be populated only if
/// the classification is known. The current usecase is for a single match. Keeping it repeated to support
/// multiple matches in future.
///
[Newtonsoft.Json.JsonPropertyAttribute("matchResults")]
public virtual System.Collections.Generic.IList MatchResults { get; set; }
///
/// Identifier. The name of the discovered API Operation. Format:
/// `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Output only. The metadata of the source from which the api operation was collected.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual GoogleCloudApihubV1SourceMetadata SourceMetadata { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. Update time stamp of the discovered API operation in API Hub.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Documentation details.
public class GoogleCloudApihubV1Documentation : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The uri of the externally hosted documentation.
[Newtonsoft.Json.JsonPropertyAttribute("externalUri")]
public virtual string ExternalUri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The EnablePluginInstanceAction method's request.
public class GoogleCloudApihubV1EnablePluginInstanceActionRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The action id to enable.
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The EnablePlugin method's request.
public class GoogleCloudApihubV1EnablePluginRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing
/// ApiMetadata. Response should contain curated data in the form of ApiMetadata.
///
public class GoogleCloudApihubV1Endpoint : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The details of the Application Integration endpoint to be triggered for curation.
///
[Newtonsoft.Json.JsonPropertyAttribute("applicationIntegrationEndpointDetails")]
public virtual GoogleCloudApihubV1ApplicationIntegrationEndpointDetails ApplicationIntegrationEndpointDetails { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The attribute values of data type enum.
public class GoogleCloudApihubV1EnumAttributeValues : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The attribute values in case attribute data type is enum.
[Newtonsoft.Json.JsonPropertyAttribute("values")]
public virtual System.Collections.Generic.IList Values { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Filter for environments.
public class GoogleCloudApihubV1EnvironmentFilter : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. Indicates if this filter should match all environments or only a subset of environments. If set to
/// true, all environments are matched.
///
[Newtonsoft.Json.JsonPropertyAttribute("allEnvironments")]
public virtual System.Nullable AllEnvironments { get; set; }
///
/// Optional. If provided, only environments in this list are matched. This field is ignored if
/// `all_environments` is true.
///
[Newtonsoft.Json.JsonPropertyAttribute("environments")]
public virtual System.Collections.Generic.IList Environments { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ExecutePluginInstanceAction method's request.
public class GoogleCloudApihubV1ExecutePluginInstanceActionRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The execution details for the action to execute.
[Newtonsoft.Json.JsonPropertyAttribute("actionExecutionDetail")]
public virtual GoogleCloudApihubV1ActionExecutionDetail ActionExecutionDetail { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The execution status for the plugin instance.
public class GoogleCloudApihubV1ExecutionStatus : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The current state of the execution.
[Newtonsoft.Json.JsonPropertyAttribute("currentExecutionState")]
public virtual string CurrentExecutionState { get; set; }
/// Output only. The last execution of the plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("lastExecution")]
public virtual GoogleCloudApihubV1LastExecution LastExecution { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// An external API represents an API being provided by external sources. This can be used to model third-party APIs
/// and can be used to define dependencies.
///
public class GoogleCloudApihubV1ExternalApi : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The list of user defined attributes associated with the Version resource. The key is the attribute
/// name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value
/// is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. Creation timestamp.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Optional. Description of the external API. Max length is 2000 characters (Unicode Code Points).
///
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// Required. Display name of the external API. Max length is 63 characters (Unicode Code Points).
///
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Optional. Documentation of the external API.
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
/// Optional. List of endpoints on which this API is accessible.
[Newtonsoft.Json.JsonPropertyAttribute("endpoints")]
public virtual System.Collections.Generic.IList Endpoints { get; set; }
/// Identifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Optional. List of paths served by this API.
[Newtonsoft.Json.JsonPropertyAttribute("paths")]
public virtual System.Collections.Generic.IList Paths { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. Last update timestamp.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The FetchAdditionalSpecContent method's response.
public class GoogleCloudApihubV1FetchAdditionalSpecContentResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The additional spec content.
[Newtonsoft.Json.JsonPropertyAttribute("additionalSpecContent")]
public virtual GoogleCloudApihubV1AdditionalSpecContent AdditionalSpecContent { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A flattened view of an API, its version and one of the linked deployments.
public class GoogleCloudApihubV1FlattenedApiVersionDeploymentView : Google.Apis.Requests.IDirectResponseSchema
{
/// The API.
[Newtonsoft.Json.JsonPropertyAttribute("api")]
public virtual GoogleCloudApihubV1Api Api { get; set; }
/// The deployment.
[Newtonsoft.Json.JsonPropertyAttribute("deployment")]
public virtual GoogleCloudApihubV1Deployment Deployment { get; set; }
/// The version.
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual GoogleCloudApihubV1Version Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// A flattened view of an API, its version, one of its operations and one of the linked deployments. If there are
/// no deployments linked to the operation then the result will be empty.
///
public class GoogleCloudApihubV1FlattenedApiVersionOperationDeploymentView : Google.Apis.Requests.IDirectResponseSchema
{
/// The API.
[Newtonsoft.Json.JsonPropertyAttribute("api")]
public virtual GoogleCloudApihubV1Api Api { get; set; }
/// The API operation.
[Newtonsoft.Json.JsonPropertyAttribute("apiOperation")]
public virtual GoogleCloudApihubV1ApiOperation ApiOperation { get; set; }
/// The deployment.
[Newtonsoft.Json.JsonPropertyAttribute("deployment")]
public virtual GoogleCloudApihubV1Deployment Deployment { get; set; }
/// The version.
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual GoogleCloudApihubV1Version Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Configuration for gateway plugin addons. This is used to specify the list of gateway plugin configs for which
/// the addon is enabled.
///
public class GoogleCloudApihubV1GatewayPluginAddonConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The list of gateway plugin configs for which the addon is enabled. Each gateway plugin config
/// should have a unique plugin instance.
///
[Newtonsoft.Json.JsonPropertyAttribute("gatewayPluginConfigs")]
public virtual System.Collections.Generic.IList GatewayPluginConfigs { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Configuration for a gateway plugin. This is used to specify configs for different gateways.
public class GoogleCloudApihubV1GatewayPluginConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Configuration for Apigee Edge gateways.
[Newtonsoft.Json.JsonPropertyAttribute("apigeeEdgeConfig")]
public virtual GoogleCloudApihubV1ApigeeEdgeConfig ApigeeEdgeConfig { get; set; }
/// Configuration for Apigee OPDK gateways.
[Newtonsoft.Json.JsonPropertyAttribute("apigeeOpdkConfig")]
public virtual GoogleCloudApihubV1ApigeeOPDKConfig ApigeeOpdkConfig { get; set; }
/// Configuration for Apigee X and Apigee Hybrid gateways.
[Newtonsoft.Json.JsonPropertyAttribute("apigeeXHybridConfig")]
public virtual GoogleCloudApihubV1ApigeeXHybridConfig ApigeeXHybridConfig { get; set; }
///
/// Required. The name of the gateway plugin instance for which the config is to be specified. Format:
/// projects/{project}/locations/{location}/plugins/{plugin}/pluginInstances/{plugin_instance}
///
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstance")]
public virtual string PluginInstance { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Config for Google service account authentication.
public class GoogleCloudApihubV1GoogleServiceAccountConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The service account to be used for authenticating request. The
/// `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the
/// impersonator service account.
///
[Newtonsoft.Json.JsonPropertyAttribute("serviceAccount")]
public virtual string ServiceAccount { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An aggregation of HTTP header occurrences.
public class GoogleCloudApihubV1Header : Google.Apis.Requests.IDirectResponseSchema
{
/// The number of occurrences of this Header across transactions.
[Newtonsoft.Json.JsonPropertyAttribute("count")]
public virtual System.Nullable Count { get; set; }
/// Data type of header
[Newtonsoft.Json.JsonPropertyAttribute("dataType")]
public virtual string DataType { get; set; }
/// Header name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Host project registration refers to the registration of a Google cloud project with Api Hub as a host project.
/// This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance
/// provisioned. Multiple runtime projects can be attached to the host project and these attachments define the
/// scope of Api Hub.
///
public class GoogleCloudApihubV1HostProjectRegistration : Google.Apis.Requests.IDirectResponseSchema
{
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the host project registration was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input,
/// project name with either project id or number are accepted. As output, this field will contain project
/// number.
///
[Newtonsoft.Json.JsonPropertyAttribute("gcpProject")]
public virtual string GcpProject { get; set; }
///
/// Identifier. The name of the host project registration. Format:
/// "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// The information related to the service implemented by the plugin developer, used to invoke the plugin's
/// functionality.
///
public class GoogleCloudApihubV1HostingService : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin's
/// functionality. This information is only required for user defined plugins.
///
[Newtonsoft.Json.JsonPropertyAttribute("serviceUri")]
public virtual string ServiceUri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The HTTP Operation.
public class GoogleCloudApihubV1HttpOperation : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. Operation method Note: Even though this field is optional, it is required for CreateApiOperation
/// API and we will fail the request if not provided.
///
[Newtonsoft.Json.JsonPropertyAttribute("method")]
public virtual string Method { get; set; }
///
/// Optional. The path details for the Operation. Note: Even though this field is optional, it is required for
/// CreateApiOperation API and we will fail the request if not provided.
///
[Newtonsoft.Json.JsonPropertyAttribute("path")]
public virtual GoogleCloudApihubV1Path Path { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An HTTP-based API Operation, sometimes called a "REST" Operation.
public class GoogleCloudApihubV1HttpOperationDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. An HTTP Operation.
[Newtonsoft.Json.JsonPropertyAttribute("httpOperation")]
public virtual GoogleCloudApihubV1HttpOperation HttpOperation { get; set; }
/// Optional. Path params of HttpOperation
[Newtonsoft.Json.JsonPropertyAttribute("pathParams")]
public virtual System.Collections.Generic.IList PathParams { get; set; }
/// Optional. Query params of HttpOperation
[Newtonsoft.Json.JsonPropertyAttribute("queryParams")]
public virtual System.Collections.Generic.IDictionary QueryParams { get; set; }
/// Optional. Request metadata.
[Newtonsoft.Json.JsonPropertyAttribute("request")]
public virtual GoogleCloudApihubV1HttpRequest Request { get; set; }
/// Optional. Response metadata.
[Newtonsoft.Json.JsonPropertyAttribute("response")]
public virtual GoogleCloudApihubV1HttpResponse Response { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An aggregation of HTTP requests.
public class GoogleCloudApihubV1HttpRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Unordered map from header name to header metadata
[Newtonsoft.Json.JsonPropertyAttribute("headers")]
public virtual System.Collections.Generic.IDictionary Headers { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An aggregation of HTTP responses.
public class GoogleCloudApihubV1HttpResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Unordered map from header name to header metadata
[Newtonsoft.Json.JsonPropertyAttribute("headers")]
public virtual System.Collections.Generic.IDictionary Headers { get; set; }
/// Optional. Map of status code to observed count
[Newtonsoft.Json.JsonPropertyAttribute("responseCodes")]
public virtual System.Collections.Generic.IDictionary> ResponseCodes { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Issue contains the details of a single issue found by the linter.
public class GoogleCloudApihubV1Issue : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Rule code unique to each rule defined in linter.
[Newtonsoft.Json.JsonPropertyAttribute("code")]
public virtual string Code { get; set; }
/// Required. Human-readable message describing the issue found by the linter.
[Newtonsoft.Json.JsonPropertyAttribute("message")]
public virtual string Message { get; set; }
///
/// Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
///
[Newtonsoft.Json.JsonPropertyAttribute("path")]
public virtual System.Collections.Generic.IList Path { get; set; }
/// Required. Object describing where in the file the issue was found.
[Newtonsoft.Json.JsonPropertyAttribute("range")]
public virtual GoogleCloudApihubV1Range Range { get; set; }
/// Required. Severity level of the rule violation.
[Newtonsoft.Json.JsonPropertyAttribute("severity")]
public virtual string Severity { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The result of the last execution of the plugin instance.
public class GoogleCloudApihubV1LastExecution : Google.Apis.Requests.IDirectResponseSchema
{
private string _endTimeRaw;
private object _endTime;
/// Output only. The last execution end time of the plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("endTime")]
public virtual string EndTimeRaw
{
get => _endTimeRaw;
set
{
_endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_endTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")]
public virtual object EndTime
{
get => _endTime;
set
{
_endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_endTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? EndTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw);
set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Output only. Error message describing the failure, if any, during the last execution.
[Newtonsoft.Json.JsonPropertyAttribute("errorMessage")]
public virtual string ErrorMessage { get; set; }
/// Output only. The result of the last execution of the plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("result")]
public virtual string Result { get; set; }
///
/// Output only. The result metadata of the last execution of the plugin instance. This will be a string
/// representation of a JSON object and will be available on successful execution.
///
[Newtonsoft.Json.JsonPropertyAttribute("resultMetadata")]
public virtual string ResultMetadata { get; set; }
private string _startTimeRaw;
private object _startTime;
/// Output only. The last execution start time of the plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("startTime")]
public virtual string StartTimeRaw
{
get => _startTimeRaw;
set
{
_startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_startTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")]
public virtual object StartTime
{
get => _startTime;
set
{
_startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_startTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? StartTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw);
set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// LintResponse contains the response from the linter.
public class GoogleCloudApihubV1LintResponse : Google.Apis.Requests.IDirectResponseSchema
{
private string _createTimeRaw;
private object _createTime;
/// Required. Timestamp when the linting response was generated.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. Array of issues found in the analyzed document.
[Newtonsoft.Json.JsonPropertyAttribute("issues")]
public virtual System.Collections.Generic.IList Issues { get; set; }
/// Required. Name of the linter used.
[Newtonsoft.Json.JsonPropertyAttribute("linter")]
public virtual string Linter { get; set; }
/// Required. Name of the linting application.
[Newtonsoft.Json.JsonPropertyAttribute("source")]
public virtual string Source { get; set; }
/// Required. Lint state represents success or failure for linting.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// Optional. Summary of all issue types and counts for each severity level.
[Newtonsoft.Json.JsonPropertyAttribute("summary")]
public virtual System.Collections.Generic.IList Summary { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The LintSpec method's request.
public class GoogleCloudApihubV1LintSpecRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListAddons method's response.
public class GoogleCloudApihubV1ListAddonsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of addons.
[Newtonsoft.Json.JsonPropertyAttribute("addons")]
public virtual System.Collections.Generic.IList Addons { get; set; }
///
/// A token to retrieve the next page of results, or empty if there are no more results in the list.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListApiOperations method's response.
public class GoogleCloudApihubV1ListApiOperationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The operations corresponding to an API version.
[Newtonsoft.Json.JsonPropertyAttribute("apiOperations")]
public virtual System.Collections.Generic.IList ApiOperations { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListApis method's response.
public class GoogleCloudApihubV1ListApisResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The API resources present in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("apis")]
public virtual System.Collections.Generic.IList Apis { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListAttributes method's response.
public class GoogleCloudApihubV1ListAttributesResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of all attributes.
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IList Attributes { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListCurations method's response.
public class GoogleCloudApihubV1ListCurationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The curation resources present in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("curations")]
public virtual System.Collections.Generic.IList Curations { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListDependencies method's response.
public class GoogleCloudApihubV1ListDependenciesResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The dependency resources present in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("dependencies")]
public virtual System.Collections.Generic.IList Dependencies { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListDeployments method's response.
public class GoogleCloudApihubV1ListDeploymentsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The deployment resources present in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("deployments")]
public virtual System.Collections.Generic.IList Deployments { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Message for response to listing DiscoveredApiObservations
public class GoogleCloudApihubV1ListDiscoveredApiObservationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The DiscoveredApiObservation from the specified project and location.
[Newtonsoft.Json.JsonPropertyAttribute("discoveredApiObservations")]
public virtual System.Collections.Generic.IList DiscoveredApiObservations { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Message for response to listing DiscoveredApiOperations
public class GoogleCloudApihubV1ListDiscoveredApiOperationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// The DiscoveredApiOperations from the specified project, location and DiscoveredApiObservation.
///
[Newtonsoft.Json.JsonPropertyAttribute("discoveredApiOperations")]
public virtual System.Collections.Generic.IList DiscoveredApiOperations { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListExternalApis method's response.
public class GoogleCloudApihubV1ListExternalApisResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The External API resources present in the API hub.
[Newtonsoft.Json.JsonPropertyAttribute("externalApis")]
public virtual System.Collections.Generic.IList ExternalApis { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListHostProjectRegistrations method's response.
public class GoogleCloudApihubV1ListHostProjectRegistrationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of host project registrations.
[Newtonsoft.Json.JsonPropertyAttribute("hostProjectRegistrations")]
public virtual System.Collections.Generic.IList HostProjectRegistrations { get; set; }
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListPluginInstances method's response.
public class GoogleCloudApihubV1ListPluginInstancesResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The plugin instances from the specified parent resource.
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstances")]
public virtual System.Collections.Generic.IList PluginInstances { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListPlugins method's response.
public class GoogleCloudApihubV1ListPluginsResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The plugins from the specified parent resource.
[Newtonsoft.Json.JsonPropertyAttribute("plugins")]
public virtual System.Collections.Generic.IList Plugins { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListRuntimeProjectAttachments method's response.
public class GoogleCloudApihubV1ListRuntimeProjectAttachmentsResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// List of runtime project attachments.
[Newtonsoft.Json.JsonPropertyAttribute("runtimeProjectAttachments")]
public virtual System.Collections.Generic.IList RuntimeProjectAttachments { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListSpecs method's response.
public class GoogleCloudApihubV1ListSpecsResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The specs corresponding to an API Version.
[Newtonsoft.Json.JsonPropertyAttribute("specs")]
public virtual System.Collections.Generic.IList Specs { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListVersions method's response.
public class GoogleCloudApihubV1ListVersionsResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no
/// subsequent pages.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The versions corresponding to an API.
[Newtonsoft.Json.JsonPropertyAttribute("versions")]
public virtual System.Collections.Generic.IList Versions { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The LookupApiHubInstance method's response.`
public class GoogleCloudApihubV1LookupApiHubInstanceResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// API Hub instance for a project if it exists, empty otherwise.
[Newtonsoft.Json.JsonPropertyAttribute("apiHubInstance")]
public virtual GoogleCloudApihubV1ApiHubInstance ApiHubInstance { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ListRuntimeProjectAttachments method's response.
public class GoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Runtime project attachment for a project if exists, empty otherwise.
[Newtonsoft.Json.JsonPropertyAttribute("runtimeProjectAttachment")]
public virtual GoogleCloudApihubV1RuntimeProjectAttachment RuntimeProjectAttachment { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ManageAddonConfig method's request.
public class GoogleCloudApihubV1ManageAddonConfigRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The config of the addon to be managed. This config will replace the config present in the addon.
/// The type of the config should match the config type already present in the addon.
///
[Newtonsoft.Json.JsonPropertyAttribute("config")]
public virtual GoogleCloudApihubV1AddonConfig Config { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ManagePluginInstanceSourceData method's request.
public class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Action to be performed.
[Newtonsoft.Json.JsonPropertyAttribute("action")]
public virtual string Action { get; set; }
/// Required. Data to be managed.
[Newtonsoft.Json.JsonPropertyAttribute("data")]
public virtual string Data { get; set; }
/// Required. Type of data to be managed.
[Newtonsoft.Json.JsonPropertyAttribute("dataType")]
public virtual string DataType { get; set; }
/// Required. Relative path of data being managed for a given plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("relativePath")]
public virtual string RelativePath { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The ManagePluginInstanceSourceData method's response.
public class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// MatchResult represents the result of matching a discovered API operation with a catalog API operation.
///
public class GoogleCloudApihubV1MatchResult : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Output only. The name of the matched API Operation. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Details describing an MCP Tool.
public class GoogleCloudApihubV1McpTool : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Optional annotations for the tool.
[Newtonsoft.Json.JsonPropertyAttribute("annotations")]
public virtual GoogleCloudApihubV1ToolAnnotations Annotations { get; set; }
/// Optional. Description of what the tool does.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Optional. Input schema for the operation. This can be parsed only from MCP schema type.
[Newtonsoft.Json.JsonPropertyAttribute("inputSchema")]
public virtual GoogleCloudApihubV1OperationSchema InputSchema { get; set; }
/// Required. The name of the tool, unique within its parent scope (version).
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Optional. Output schema for the operation. This can be parsed only from MCP schema type.
[Newtonsoft.Json.JsonPropertyAttribute("outputSchema")]
public virtual GoogleCloudApihubV1OperationSchema OutputSchema { get; set; }
/// Optional. Optional title for the tool.
[Newtonsoft.Json.JsonPropertyAttribute("title")]
public virtual string Title { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The config variable value of data type multi int.
public class GoogleCloudApihubV1MultiIntValues : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The config variable value of data type multi int.
[Newtonsoft.Json.JsonPropertyAttribute("values")]
public virtual System.Collections.Generic.IList> Values { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The config variable value of data type multi select.
public class GoogleCloudApihubV1MultiSelectValues : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The config variable value of data type multi select.
[Newtonsoft.Json.JsonPropertyAttribute("values")]
public virtual System.Collections.Generic.IList Values { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The config variable value of data type multi string.
public class GoogleCloudApihubV1MultiStringValues : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The config variable value of data type multi string.
[Newtonsoft.Json.JsonPropertyAttribute("values")]
public virtual System.Collections.Generic.IList Values { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Parameters to support Oauth 2.0 client credentials grant authentication. See
/// https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
///
public class GoogleCloudApihubV1Oauth2ClientCredentialsConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The client identifier.
[Newtonsoft.Json.JsonPropertyAttribute("clientId")]
public virtual string ClientId { get; set; }
///
/// Required. Secret version reference containing the client secret. The `secretmanager.versions.access`
/// permission should be granted to the service account accessing the secret.
///
[Newtonsoft.Json.JsonPropertyAttribute("clientSecret")]
public virtual GoogleCloudApihubV1Secret ClientSecret { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in
/// SpecDetails.
///
public class GoogleCloudApihubV1OpenApiSpecDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The format of the spec.
[Newtonsoft.Json.JsonPropertyAttribute("format")]
public virtual string Format { get; set; }
/// Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
[Newtonsoft.Json.JsonPropertyAttribute("owner")]
public virtual GoogleCloudApihubV1Owner Owner { get; set; }
/// Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual string Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The operation details parsed from the spec.
public class GoogleCloudApihubV1OperationDetails : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. For OpenAPI spec, this will be set if `operation.deprecated`is marked as `true` in the spec.
///
[Newtonsoft.Json.JsonPropertyAttribute("deprecated")]
public virtual System.Nullable Deprecated { get; set; }
///
/// Optional. Description of the operation behavior. For OpenAPI spec, this will map to `operation.description`
/// in the spec, in case description is empty, `operation.summary` will be used.
///
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// Optional. Additional external documentation for this operation. For OpenAPI spec, this will map to
/// `operation.documentation` in the spec.
///
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
/// The HTTP Operation.
[Newtonsoft.Json.JsonPropertyAttribute("httpOperation")]
public virtual GoogleCloudApihubV1HttpOperation HttpOperation { get; set; }
/// The MCP Tool Operation.
[Newtonsoft.Json.JsonPropertyAttribute("mcpTool")]
public virtual GoogleCloudApihubV1McpTool McpTool { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents the metadata of the long-running operation.
public class GoogleCloudApihubV1OperationMetadata : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. API version used to start the operation.
[Newtonsoft.Json.JsonPropertyAttribute("apiVersion")]
public virtual string ApiVersion { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time the operation was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
private string _endTimeRaw;
private object _endTime;
/// Output only. The time the operation finished running.
[Newtonsoft.Json.JsonPropertyAttribute("endTime")]
public virtual string EndTimeRaw
{
get => _endTimeRaw;
set
{
_endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_endTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")]
public virtual object EndTime
{
get => _endTime;
set
{
_endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_endTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? EndTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw);
set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Output only. Identifies whether the user has requested cancellation of the operation. Operations that have
/// been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to
/// `Code.CANCELLED`.
///
[Newtonsoft.Json.JsonPropertyAttribute("requestedCancellation")]
public virtual System.Nullable RequestedCancellation { get; set; }
/// Output only. Human-readable status of the operation, if any.
[Newtonsoft.Json.JsonPropertyAttribute("statusMessage")]
public virtual string StatusMessage { get; set; }
/// Output only. Server-defined resource path for the target of the operation.
[Newtonsoft.Json.JsonPropertyAttribute("target")]
public virtual string Target { get; set; }
/// Output only. Name of the verb executed by the operation.
[Newtonsoft.Json.JsonPropertyAttribute("verb")]
public virtual string Verb { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The operation schema needed for an operation.
public class GoogleCloudApihubV1OperationSchema : Google.Apis.Requests.IDirectResponseSchema
{
///
/// The JSON schema. Only valid JSON is accepted but semantic validation of schema is not supported right now.
///
[Newtonsoft.Json.JsonPropertyAttribute("jsonSchema")]
public virtual System.Collections.Generic.IDictionary JsonSchema { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Owner details.
public class GoogleCloudApihubV1Owner : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The name of the owner.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Required. The email of the owner.
[Newtonsoft.Json.JsonPropertyAttribute("email")]
public virtual string Email { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The path details derived from the spec.
public class GoogleCloudApihubV1Path : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. A short description for the path applicable to all operations.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is
/// required for CreateApiOperation API and we will fail the request if not provided.
///
[Newtonsoft.Json.JsonPropertyAttribute("path")]
public virtual string Path { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// HTTP Path parameter.
public class GoogleCloudApihubV1PathParam : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Data type of path param
[Newtonsoft.Json.JsonPropertyAttribute("dataType")]
public virtual string DataType { get; set; }
/// Optional. Segment location in the path, 1-indexed
[Newtonsoft.Json.JsonPropertyAttribute("position")]
public virtual System.Nullable Position { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A plugin resource in the API Hub.
public class GoogleCloudApihubV1Plugin : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided
/// when creating or updating a Plugin. The server will reject requests if this field is missing.
///
[Newtonsoft.Json.JsonPropertyAttribute("actionsConfig")]
public virtual System.Collections.Generic.IList ActionsConfig { get; set; }
/// Optional. The configuration template for the plugin.
[Newtonsoft.Json.JsonPropertyAttribute("configTemplate")]
public virtual GoogleCloudApihubV1ConfigTemplate ConfigTemplate { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. Timestamp indicating when the plugin was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Optional. The plugin description. Max length is 2000 characters (Unicode code points).
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
///
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Optional. The documentation of the plugin, that explains how to set up and use the plugin.
///
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
/// Optional. The type of the gateway.
[Newtonsoft.Json.JsonPropertyAttribute("gatewayType")]
public virtual string GatewayType { get; set; }
///
/// Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes
/// of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions.
/// This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed
/// from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field
/// should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub
/// interface and use plugin framework for only registering of plugin and plugin instances to capture the source
/// of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented.
/// Also, the plugin instance lifecycle actions will be disabled from API hub's UI.
///
[Newtonsoft.Json.JsonPropertyAttribute("hostingService")]
public virtual GoogleCloudApihubV1HostingService HostingService { get; set; }
///
/// Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Output only. The type of the plugin, indicating whether it is 'SYSTEM_OWNED' or 'USER_OWNED'.
///
[Newtonsoft.Json.JsonPropertyAttribute("ownershipType")]
public virtual string OwnershipType { get; set; }
///
/// Optional. The category of the plugin, identifying its primary category or purpose. This field is required
/// for all plugins.
///
[Newtonsoft.Json.JsonPropertyAttribute("pluginCategory")]
public virtual string PluginCategory { get; set; }
///
/// Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via
/// plugin framework as the state will be managed at plugin instance level.
///
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
///
/// Optional. The type of the API. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed
/// values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via
/// GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this
/// field is not required for plugins developed via plugin framework.
///
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual GoogleCloudApihubV1AttributeValues Type { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. Timestamp indicating when the plugin was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// PluginActionConfig represents the configuration of an action supported by a plugin.
public class GoogleCloudApihubV1PluginActionConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The description of the operation performed by the action.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the action.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Required. The id of the action.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Required. The trigger mode supported by the action.
[Newtonsoft.Json.JsonPropertyAttribute("triggerMode")]
public virtual string TriggerMode { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin
/// with its own configuration, state, and execution details.
///
public class GoogleCloudApihubV1PluginInstance : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The action status for the plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("actions")]
public virtual System.Collections.Generic.IList Actions { get; set; }
///
/// Optional. The additional information for this plugin instance corresponding to the additional config
/// template of the plugin. This information will be sent to plugin hosting service on each call to plugin
/// hosted service. The key will be the config_variable_template.display_name to uniquely identify the config
/// variable.
///
[Newtonsoft.Json.JsonPropertyAttribute("additionalConfig")]
public virtual System.Collections.Generic.IDictionary AdditionalConfig { get; set; }
/// Optional. The authentication information for this plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("authConfig")]
public virtual GoogleCloudApihubV1AuthConfig AuthConfig { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. Timestamp indicating when the plugin instance was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Required. The display name for this plugin instance. Max length is 255 characters.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Output only. Error message describing the failure, if any, during Create, Delete or ApplyConfig operation
/// corresponding to the plugin instance.This field will only be populated if the plugin instance is in the
/// ERROR or FAILED state.
///
[Newtonsoft.Json.JsonPropertyAttribute("errorMessage")]
public virtual string ErrorMessage { get; set; }
///
/// Identifier. The unique name of the plugin instance resource. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Optional. The source environment's config present in the gateway instance linked to the plugin instance. The
/// key is the `source_environment` name from the SourceEnvironment message.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceEnvironmentsConfig")]
public virtual System.Collections.Generic.IDictionary SourceEnvironmentsConfig { get; set; }
///
/// Optional. The source project id of the plugin instance. This will be the id of runtime project in case of
/// gcp based plugins and org id in case of non gcp based plugins. This field will be a required field for
/// Google provided on-ramp plugins.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceProjectId")]
public virtual string SourceProjectId { get; set; }
///
/// Output only. The current state of the plugin instance (e.g., enabled, disabled, provisioning).
///
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. Timestamp indicating when the plugin instance was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// PluginInstanceAction represents an action which can be executed in the plugin instance.
public class GoogleCloudApihubV1PluginInstanceAction : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. This should map to one of the action id specified in actions_config in the plugin.
///
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
///
/// Optional. This configuration should be provided if the plugin action is publishing data to API hub curate
/// layer.
///
[Newtonsoft.Json.JsonPropertyAttribute("curationConfig")]
public virtual GoogleCloudApihubV1CurationConfig CurationConfig { get; set; }
///
/// Optional. The execution information for the plugin instance action done corresponding to an API hub
/// instance.
///
[Newtonsoft.Json.JsonPropertyAttribute("hubInstanceAction")]
public virtual GoogleCloudApihubV1ExecutionStatus HubInstanceAction { get; set; }
///
/// Output only. The configuration of resources created for a given plugin instance action. Note these will be
/// returned only in case of Non-GCP plugins like OPDK.
///
[Newtonsoft.Json.JsonPropertyAttribute("resourceConfig")]
public virtual GoogleCloudApihubV1ResourceConfig ResourceConfig { get; set; }
///
/// Optional. The schedule for this plugin instance action. This can only be set if the plugin supports
/// API_HUB_SCHEDULE_TRIGGER mode for this action.
///
[Newtonsoft.Json.JsonPropertyAttribute("scheduleCronExpression")]
public virtual string ScheduleCronExpression { get; set; }
///
/// Optional. The time zone for the schedule cron expression. If not provided, UTC will be used.
///
[Newtonsoft.Json.JsonPropertyAttribute("scheduleTimeZone")]
public virtual string ScheduleTimeZone { get; set; }
///
/// Optional. The service account used to publish data. Note, the service account will only be accepted for non
/// GCP plugins like OPDK.
///
[Newtonsoft.Json.JsonPropertyAttribute("serviceAccount")]
public virtual string ServiceAccount { get; set; }
/// Output only. The current state of the plugin action in the plugin instance.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The plugin instance and associated action that is using the curation.
public class GoogleCloudApihubV1PluginInstanceActionID : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Output only. The action ID that is using the curation. This should map to one of the action IDs specified in
/// action configs in the plugin.
///
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
///
/// Output only. Plugin instance that is using the curation. Format is
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstance")]
public virtual string PluginInstance { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// PluginInstanceActionSource represents the plugin instance action source.
public class GoogleCloudApihubV1PluginInstanceActionSource : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The id of the plugin instance action.
[Newtonsoft.Json.JsonPropertyAttribute("actionId")]
public virtual string ActionId { get; set; }
///
/// Output only. The resource name of the source plugin instance. Format is
/// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
///
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstance")]
public virtual string PluginInstance { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Point within the file (line and character).
public class GoogleCloudApihubV1Point : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Character position within the line (zero-indexed).
[Newtonsoft.Json.JsonPropertyAttribute("character")]
public virtual System.Nullable Character { get; set; }
/// Required. Line number (zero-indexed).
[Newtonsoft.Json.JsonPropertyAttribute("line")]
public virtual System.Nullable Line { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An aggregation of HTTP query parameter occurrences.
public class GoogleCloudApihubV1QueryParam : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. The number of occurrences of this query parameter across transactions.
[Newtonsoft.Json.JsonPropertyAttribute("count")]
public virtual System.Nullable Count { get; set; }
/// Optional. Data type of path param
[Newtonsoft.Json.JsonPropertyAttribute("dataType")]
public virtual string DataType { get; set; }
/// Required. Name of query param
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Object describing where in the file the issue was found.
public class GoogleCloudApihubV1Range : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. End of the issue.
[Newtonsoft.Json.JsonPropertyAttribute("end")]
public virtual GoogleCloudApihubV1Point End { get; set; }
/// Required. Start of the issue.
[Newtonsoft.Json.JsonPropertyAttribute("start")]
public virtual GoogleCloudApihubV1Point Start { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The configuration of resources created for a given plugin instance action.
public class GoogleCloudApihubV1ResourceConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The type of the action.
[Newtonsoft.Json.JsonPropertyAttribute("actionType")]
public virtual string ActionType { get; set; }
///
/// Output only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
///
[Newtonsoft.Json.JsonPropertyAttribute("pubsubTopic")]
public virtual string PubsubTopic { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The RetrieveApiViews method's response.
public class GoogleCloudApihubV1RetrieveApiViewsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of API views.
[Newtonsoft.Json.JsonPropertyAttribute("apiViews")]
public virtual System.Collections.Generic.IList ApiViews { get; set; }
/// Next page token.
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Runtime project attachment represents an attachment from the runtime project to the host project. Api Hub looks
/// for deployments in the attached runtime projects and creates corresponding resources in Api Hub for the
/// discovered deployments.
///
public class GoogleCloudApihubV1RuntimeProjectAttachment : Google.Apis.Requests.IDirectResponseSchema
{
private string _createTimeRaw;
private object _createTime;
/// Output only. Create time.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Identifier. The resource name of a runtime project attachment. Format:
/// "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input,
/// project name with either project id or number are accepted. As output, this field will contain project
/// number.
///
[Newtonsoft.Json.JsonPropertyAttribute("runtimeProject")]
public virtual string RuntimeProject { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// The schema details derived from the spec. Currently, this entity is supported for OpenAPI spec only. For OpenAPI
/// spec, this maps to the schema defined in the `definitions` section for OpenAPI 2.0 version and in
/// `components.schemas` section for OpenAPI 3.0 and 3.1 version.
///
public class GoogleCloudApihubV1Schema : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Output only. The display name of the schema. This will map to the name of the schema in the spec.
///
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Output only. The raw value of the schema definition corresponding to the schema name in the spec.
///
[Newtonsoft.Json.JsonPropertyAttribute("rawValue")]
public virtual string RawValue { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The SearchResources method's request.
public class GoogleCloudApihubV1SearchResourcesRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. An expression that filters the list of search results. A filter expression consists of a field
/// name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean.
/// The comparison operator must be `=`. Filters are not case sensitive. The following field names are eligible
/// for filtering: * `resource_type` - The type of resource in the search results. Must be one of the following:
/// `Api`, `ApiOperation`, `Deployment`, `Definition`, `Spec` or `Version`. This field can only be specified
/// once in the filter. Here are is an example: * `resource_type = Api` - The resource_type is _Api_.
///
[Newtonsoft.Json.JsonPropertyAttribute("filter")]
public virtual string Filter { get; set; }
///
/// Optional. The maximum number of search results to return. The service may return fewer than this value. If
/// unspecified at most 10 search results will be returned. If value is negative then `INVALID_ARGUMENT` error
/// is returned. The maximum value is 25; values above 25 will be coerced to 25. While paginating, you can
/// specify a new page size parameter for each page of search results to be listed.
///
[Newtonsoft.Json.JsonPropertyAttribute("pageSize")]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous SearchResources call. Specify this parameter to retrieve
/// the next page of transactions. When paginating, you must specify the `page_token` parameter and all the
/// other parameters except page_size should be specified with the same value which was used in the previous
/// call. If the other fields are set with a different value than the previous call then `INVALID_ARGUMENT`
/// error is returned.
///
[Newtonsoft.Json.JsonPropertyAttribute("pageToken")]
public virtual string PageToken { get; set; }
///
/// Required. The free text search query. This query can contain keywords which could be related to any detail
/// of the API-Hub resources such display names, descriptions, attributes etc.
///
[Newtonsoft.Json.JsonPropertyAttribute("query")]
public virtual string Query { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response for the SearchResources method.
public class GoogleCloudApihubV1SearchResourcesResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Pass this token in the SearchResourcesRequest to continue to list results. If all results have been
/// returned, this field is an empty string or not present in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
///
/// List of search results according to the filter and search query specified. The order of search results
/// represents the ranking.
///
[Newtonsoft.Json.JsonPropertyAttribute("searchResults")]
public virtual System.Collections.Generic.IList SearchResults { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents the search results.
public class GoogleCloudApihubV1SearchResult : Google.Apis.Requests.IDirectResponseSchema
{
///
/// This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.
///
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual GoogleCloudApihubV1ApiHubResource Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Secret provides a reference to entries in Secret Manager.
public class GoogleCloudApihubV1Secret : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The resource name of the secret version in the format, format as:
/// `projects/*/secrets/*/versions/*`.
///
[Newtonsoft.Json.JsonPropertyAttribute("secretVersion")]
public virtual string SecretVersion { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Message representing the source environment details.
public class GoogleCloudApihubV1SourceEnvironment : Google.Apis.Requests.IDirectResponseSchema
{
private string _createTimeRaw;
private object _createTime;
/// Optional. The time at which the environment was created at the source.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Required. The name of the environment at the source. This should map to Deployment.
[Newtonsoft.Json.JsonPropertyAttribute("sourceEnvironment")]
public virtual string SourceEnvironment { get; set; }
///
/// The location where additional information about source environments can be found. The location should be
/// relative path of the environment manifest with respect to a plugin instance.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceEnvironmentUri")]
public virtual string SourceEnvironmentUri { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Optional. The time at which the environment was last updated at the source.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// SourceMetadata represents the metadata for a resource at the source.
public class GoogleCloudApihubV1SourceMetadata : Google.Apis.Requests.IDirectResponseSchema
{
private string _originalResourceCreateTimeRaw;
private object _originalResourceCreateTime;
/// Output only. The time at which the resource was created at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalResourceCreateTime")]
public virtual string OriginalResourceCreateTimeRaw
{
get => _originalResourceCreateTimeRaw;
set
{
_originalResourceCreateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalResourceCreateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalResourceCreateTimeDateTimeOffset instead.")]
public virtual object OriginalResourceCreateTime
{
get => _originalResourceCreateTime;
set
{
_originalResourceCreateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalResourceCreateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalResourceCreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalResourceCreateTimeRaw);
set => OriginalResourceCreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Output only. The unique identifier of the resource at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalResourceId")]
public virtual string OriginalResourceId { get; set; }
private string _originalResourceUpdateTimeRaw;
private object _originalResourceUpdateTime;
/// Output only. The time at which the resource was last updated at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalResourceUpdateTime")]
public virtual string OriginalResourceUpdateTimeRaw
{
get => _originalResourceUpdateTimeRaw;
set
{
_originalResourceUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalResourceUpdateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalResourceUpdateTimeDateTimeOffset instead.")]
public virtual object OriginalResourceUpdateTime
{
get => _originalResourceUpdateTime;
set
{
_originalResourceUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalResourceUpdateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalResourceUpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalResourceUpdateTimeRaw);
set => OriginalResourceUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Output only. The source of the resource is a plugin instance action.
[Newtonsoft.Json.JsonPropertyAttribute("pluginInstanceActionSource")]
public virtual GoogleCloudApihubV1PluginInstanceActionSource PluginInstanceActionSource { get; set; }
/// Output only. The type of the source.
[Newtonsoft.Json.JsonPropertyAttribute("sourceType")]
public virtual string SourceType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Represents a spec associated with an API version in the API Hub. Note that specs of various types can be
/// uploaded, however parsing of details is supported for OpenAPI spec currently.
///
public class GoogleCloudApihubV1Spec : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The additional spec contents for the spec.
[Newtonsoft.Json.JsonPropertyAttribute("additionalSpecContents")]
public virtual System.Collections.Generic.IList AdditionalSpecContents { get; set; }
///
/// Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It
/// will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the
/// attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
/// Optional. Input only. The contents of the uploaded spec.
[Newtonsoft.Json.JsonPropertyAttribute("contents")]
public virtual GoogleCloudApihubV1SpecContents Contents { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the spec was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Output only. Details parsed from the spec.
[Newtonsoft.Json.JsonPropertyAttribute("details")]
public virtual GoogleCloudApihubV1SpecDetails Details { get; set; }
/// Required. The display name of the spec. This can contain the file name of the spec.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in
/// OpenAPI spec.
///
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
/// Optional. The lint response for the spec.
[Newtonsoft.Json.JsonPropertyAttribute("lintResponse")]
public virtual GoogleCloudApihubV1LintResponse LintResponse { get; set; }
///
/// Identifier. The name of the spec. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
///
[Newtonsoft.Json.JsonPropertyAttribute("parsingMode")]
public virtual string ParsingMode { get; set; }
/// Output only. The list of sources and metadata from the sources of the spec.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual System.Collections.Generic.IList SourceMetadata { get; set; }
///
/// Optional. The URI of the spec source in case file is uploaded from an external version control system.
///
[Newtonsoft.Json.JsonPropertyAttribute("sourceUri")]
public virtual string SourceUri { get; set; }
///
/// Required. The type of spec. The value should be one of the allowed values defined for
/// `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for
/// this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute
/// API. Note, this field is mandatory if content is provided.
///
[Newtonsoft.Json.JsonPropertyAttribute("specType")]
public virtual GoogleCloudApihubV1AttributeValues SpecType { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the spec was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The spec contents.
public class GoogleCloudApihubV1SpecContents : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The contents of the spec.
[Newtonsoft.Json.JsonPropertyAttribute("contents")]
public virtual string Contents { get; set; }
///
/// Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
///
[Newtonsoft.Json.JsonPropertyAttribute("mimeType")]
public virtual string MimeType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// SpecDetails contains the details parsed from supported spec types.
public class GoogleCloudApihubV1SpecDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. The description of the spec.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The
/// OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
///
[Newtonsoft.Json.JsonPropertyAttribute("openApiSpecDetails")]
public virtual GoogleCloudApihubV1OpenApiSpecDetails OpenApiSpecDetails { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The metadata associated with a spec of the API version.
public class GoogleCloudApihubV1SpecMetadata : Google.Apis.Requests.IDirectResponseSchema
{
private string _originalCreateTimeRaw;
private object _originalCreateTime;
/// Optional. Timestamp indicating when the spec was created at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalCreateTime")]
public virtual string OriginalCreateTimeRaw
{
get => _originalCreateTimeRaw;
set
{
_originalCreateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalCreateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalCreateTimeDateTimeOffset instead.")]
public virtual object OriginalCreateTime
{
get => _originalCreateTime;
set
{
_originalCreateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalCreateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalCreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalCreateTimeRaw);
set => OriginalCreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Optional. The unique identifier of the spec in the system where it was originally created.
///
[Newtonsoft.Json.JsonPropertyAttribute("originalId")]
public virtual string OriginalId { get; set; }
private string _originalUpdateTimeRaw;
private object _originalUpdateTime;
/// Required. Timestamp indicating when the spec was last updated at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalUpdateTime")]
public virtual string OriginalUpdateTimeRaw
{
get => _originalUpdateTimeRaw;
set
{
_originalUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalUpdateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalUpdateTimeDateTimeOffset instead.")]
public virtual object OriginalUpdateTime
{
get => _originalUpdateTime;
set
{
_originalUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalUpdateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalUpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalUpdateTimeRaw);
set => OriginalUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by
/// Hub.
///
[Newtonsoft.Json.JsonPropertyAttribute("spec")]
public virtual GoogleCloudApihubV1Spec Spec { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The attribute values of data type string or JSON.
public class GoogleCloudApihubV1StringAttributeValues : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The attribute values in case attribute data type is string or JSON.
[Newtonsoft.Json.JsonPropertyAttribute("values")]
public virtual System.Collections.Generic.IList Values { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents a singleton style guide resource to be used for linting Open API specs.
public class GoogleCloudApihubV1StyleGuide : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Input only. The contents of the uploaded style guide.
[Newtonsoft.Json.JsonPropertyAttribute("contents")]
public virtual GoogleCloudApihubV1StyleGuideContents Contents { get; set; }
/// Required. Target linter for the style guide.
[Newtonsoft.Json.JsonPropertyAttribute("linter")]
public virtual string Linter { get; set; }
///
/// Identifier. The name of the style guide. Format:
/// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The style guide contents.
public class GoogleCloudApihubV1StyleGuideContents : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The contents of the style guide.
[Newtonsoft.Json.JsonPropertyAttribute("contents")]
public virtual string Contents { get; set; }
/// Required. The mime type of the content.
[Newtonsoft.Json.JsonPropertyAttribute("mimeType")]
public virtual string MimeType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Count of issues with a given severity.
public class GoogleCloudApihubV1SummaryEntry : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Count of issues with the given severity.
[Newtonsoft.Json.JsonPropertyAttribute("count")]
public virtual System.Nullable Count { get; set; }
/// Required. Severity of the issue.
[Newtonsoft.Json.JsonPropertyAttribute("severity")]
public virtual string Severity { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Annotations for a Tool.
public class GoogleCloudApihubV1ToolAnnotations : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional. Additional hints which may help tools and not covered in defaults.
[Newtonsoft.Json.JsonPropertyAttribute("additionalHints")]
public virtual System.Collections.Generic.IDictionary AdditionalHints { get; set; }
/// Optional. Hint indicating if the tool may have destructive side effects.
[Newtonsoft.Json.JsonPropertyAttribute("destructiveHint")]
public virtual System.Nullable DestructiveHint { get; set; }
/// Optional. Hint indicating if the tool is idempotent.
[Newtonsoft.Json.JsonPropertyAttribute("idempotentHint")]
public virtual System.Nullable IdempotentHint { get; set; }
/// Optional. Hint indicating if the tool interacts with the open world (e.g., internet).
[Newtonsoft.Json.JsonPropertyAttribute("openWorldHint")]
public virtual System.Nullable OpenWorldHint { get; set; }
/// Optional. Hint indicating if the tool is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("readOnlyHint")]
public virtual System.Nullable ReadOnlyHint { get; set; }
/// Optional. A human-readable title for the tool (if different from Tool.title).
[Newtonsoft.Json.JsonPropertyAttribute("title")]
public virtual string Title { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Parameters to support Username and Password Authentication.
public class GoogleCloudApihubV1UserPasswordConfig : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. Secret version reference containing the password. The `secretmanager.versions.access` permission
/// should be granted to the service account accessing the secret.
///
[Newtonsoft.Json.JsonPropertyAttribute("password")]
public virtual GoogleCloudApihubV1Secret Password { get; set; }
/// Required. Username.
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// Represents a version of the API resource in API hub. This is also referred to as the API version.
///
public class GoogleCloudApihubV1Version : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The accreditations associated with the API version. This maps to the following system defined
/// attribute: `projects/{project}/locations/{location}/attributes/system-accreditation` attribute. The number
/// of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved
/// via GetAttribute API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("accreditation")]
public virtual GoogleCloudApihubV1AttributeValues Accreditation { get; set; }
///
/// Output only. The operations contained in the API version. These operations will be added to the version when
/// a new spec is added or when an existing spec is updated. Format is
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
///
[Newtonsoft.Json.JsonPropertyAttribute("apiOperations")]
public virtual System.Collections.Generic.IList ApiOperations { get; set; }
///
/// Optional. The list of user defined attributes associated with the Version resource. The key is the attribute
/// name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value
/// is the attribute values associated with the resource.
///
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
///
/// Optional. The compliance associated with the API version. This maps to the following system defined
/// attribute: `projects/{project}/locations/{location}/attributes/system-compliance` attribute. The number of
/// values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via
/// GetAttribute API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("compliance")]
public virtual GoogleCloudApihubV1AttributeValues Compliance { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time at which the version was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Output only. The definitions contained in the API version. These definitions will be added to the version
/// when a new spec is added or when an existing spec is updated. Format is
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
///
[Newtonsoft.Json.JsonPropertyAttribute("definitions")]
public virtual System.Collections.Generic.IList Definitions { get; set; }
///
/// Optional. The deployments linked to this API version. Note: A particular API version could be deployed to
/// multiple deployments (for dev deployment, UAT deployment, etc) Format is
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
[Newtonsoft.Json.JsonPropertyAttribute("deployments")]
public virtual System.Collections.Generic.IList Deployments { get; set; }
/// Optional. The description of the version.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Required. The display name of the version.
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
/// Optional. The documentation of the version.
[Newtonsoft.Json.JsonPropertyAttribute("documentation")]
public virtual GoogleCloudApihubV1Documentation Documentation { get; set; }
///
/// Optional. The lifecycle of the API version. This maps to the following system defined attribute:
/// `projects/{project}/locations/{location}/attributes/system-lifecycle` attribute. The number of values for
/// this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute
/// API. All values should be from the list of allowed values defined for the attribute.
///
[Newtonsoft.Json.JsonPropertyAttribute("lifecycle")]
public virtual GoogleCloudApihubV1AttributeValues Lifecycle { get; set; }
///
/// Identifier. The name of the version. Format:
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Optional. The selected deployment for a Version resource. This can be used when special handling is needed
/// on client side for a particular deployment linked to the version. Format is
/// `projects/{project}/locations/{location}/deployments/{deployment}`
///
[Newtonsoft.Json.JsonPropertyAttribute("selectedDeployment")]
public virtual string SelectedDeployment { get; set; }
/// Output only. The list of sources and metadata from the sources of the version.
[Newtonsoft.Json.JsonPropertyAttribute("sourceMetadata")]
public virtual System.Collections.Generic.IList SourceMetadata { get; set; }
///
/// Output only. The specs associated with this version. Note that an API version can be associated with
/// multiple specs. Format is
/// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
///
[Newtonsoft.Json.JsonPropertyAttribute("specs")]
public virtual System.Collections.Generic.IList Specs { get; set; }
private string _updateTimeRaw;
private object _updateTime;
/// Output only. The time at which the version was last updated.
[Newtonsoft.Json.JsonPropertyAttribute("updateTime")]
public virtual string UpdateTimeRaw
{
get => _updateTimeRaw;
set
{
_updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_updateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime
{
get => _updateTime;
set
{
_updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_updateTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw);
set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The metadata associated with a version of the API resource.
public class GoogleCloudApihubV1VersionMetadata : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The deployments linked to this API version. Note: A particular API version could be deployed to
/// multiple deployments (for dev deployment, UAT deployment, etc.)
///
[Newtonsoft.Json.JsonPropertyAttribute("deployments")]
public virtual System.Collections.Generic.IList Deployments { get; set; }
private string _originalCreateTimeRaw;
private object _originalCreateTime;
/// Optional. Timestamp indicating when the version was created at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalCreateTime")]
public virtual string OriginalCreateTimeRaw
{
get => _originalCreateTimeRaw;
set
{
_originalCreateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalCreateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalCreateTimeDateTimeOffset instead.")]
public virtual object OriginalCreateTime
{
get => _originalCreateTime;
set
{
_originalCreateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalCreateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalCreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalCreateTimeRaw);
set => OriginalCreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Optional. The unique identifier of the version in the system where it was originally created.
///
[Newtonsoft.Json.JsonPropertyAttribute("originalId")]
public virtual string OriginalId { get; set; }
private string _originalUpdateTimeRaw;
private object _originalUpdateTime;
/// Required. Timestamp indicating when the version was last updated at the source.
[Newtonsoft.Json.JsonPropertyAttribute("originalUpdateTime")]
public virtual string OriginalUpdateTimeRaw
{
get => _originalUpdateTimeRaw;
set
{
_originalUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_originalUpdateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OriginalUpdateTimeDateTimeOffset instead.")]
public virtual object OriginalUpdateTime
{
get => _originalUpdateTime;
set
{
_originalUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_originalUpdateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? OriginalUpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OriginalUpdateTimeRaw);
set => OriginalUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Optional. The specs associated with this version. Note that an API version can be associated with multiple
/// specs.
///
[Newtonsoft.Json.JsonPropertyAttribute("specs")]
public virtual System.Collections.Generic.IList Specs { get; set; }
///
/// Required. Represents a version of the API resource in API hub. The ID of the version will be generated by
/// Hub.
///
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual GoogleCloudApihubV1Version Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents the metadata of the long-running operation.
public class GoogleCloudCommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema
{
/// Output only. API version used to start the operation.
[Newtonsoft.Json.JsonPropertyAttribute("apiVersion")]
public virtual string ApiVersion { get; set; }
///
/// Output only. Identifies whether the user has requested cancellation of the operation. Operations that have
/// been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of
/// `1`, corresponding to `Code.CANCELLED`.
///
[Newtonsoft.Json.JsonPropertyAttribute("cancelRequested")]
public virtual System.Nullable CancelRequested { get; set; }
private string _createTimeRaw;
private object _createTime;
/// Output only. The time the operation was created.
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
private string _endTimeRaw;
private object _endTime;
/// Output only. The time the operation finished running.
[Newtonsoft.Json.JsonPropertyAttribute("endTime")]
public virtual string EndTimeRaw
{
get => _endTimeRaw;
set
{
_endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_endTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")]
public virtual object EndTime
{
get => _endTime;
set
{
_endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_endTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? EndTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw);
set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
/// Output only. Human-readable status of the operation, if any.
[Newtonsoft.Json.JsonPropertyAttribute("statusDetail")]
public virtual string StatusDetail { get; set; }
/// Output only. Server-defined resource path for the target of the operation.
[Newtonsoft.Json.JsonPropertyAttribute("target")]
public virtual string Target { get; set; }
/// Output only. Name of the verb executed by the operation.
[Newtonsoft.Json.JsonPropertyAttribute("verb")]
public virtual string Verb { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The response message for Locations.ListLocations.
public class GoogleCloudLocationListLocationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of locations that matches the specified filter in the request.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// The standard List next-page token.
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A resource that represents a Google Cloud location.
public class GoogleCloudLocationLocation : Google.Apis.Requests.IDirectResponseSchema
{
/// The friendly name for this location, typically a nearby city name. For example, "Tokyo".
[Newtonsoft.Json.JsonPropertyAttribute("displayName")]
public virtual string DisplayName { get; set; }
///
/// Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
///
[Newtonsoft.Json.JsonPropertyAttribute("labels")]
public virtual System.Collections.Generic.IDictionary Labels { get; set; }
/// The canonical id for this location. For example: `"us-east1"`.
[Newtonsoft.Json.JsonPropertyAttribute("locationId")]
public virtual string LocationId { get; set; }
/// Service-specific metadata. For example the available capacity at the given location.
[Newtonsoft.Json.JsonPropertyAttribute("metadata")]
public virtual System.Collections.Generic.IDictionary Metadata { get; set; }
///
/// Resource name for the location, which may vary between implementations. For example:
/// `"projects/example-project/locations/us-east1"`
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The request message for Operations.CancelOperation.
public class GoogleLongrunningCancelOperationRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The response message for Operations.ListOperations.
public class GoogleLongrunningListOperationsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The standard List next-page token.
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// A list of operations that matches the specified filter in the request.
[Newtonsoft.Json.JsonPropertyAttribute("operations")]
public virtual System.Collections.Generic.IList Operations { get; set; }
///
/// Unordered list. Unreachable resources. Populated when the request sets
/// `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to
/// list all resources across all supported locations.
///
[Newtonsoft.Json.JsonPropertyAttribute("unreachable")]
public virtual System.Collections.Generic.IList Unreachable { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// This resource represents a long-running operation that is the result of a network API call.
public class GoogleLongrunningOperation : Google.Apis.Requests.IDirectResponseSchema
{
///
/// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed,
/// and either `error` or `response` is available.
///
[Newtonsoft.Json.JsonPropertyAttribute("done")]
public virtual System.Nullable Done { get; set; }
/// The error result of the operation in case of failure or cancellation.
[Newtonsoft.Json.JsonPropertyAttribute("error")]
public virtual GoogleRpcStatus Error { get; set; }
///
/// Service-specific metadata associated with the operation. It typically contains progress information and
/// common metadata such as create time. Some services might not provide such metadata. Any method that returns
/// a long-running operation should document the metadata type, if any.
///
[Newtonsoft.Json.JsonPropertyAttribute("metadata")]
public virtual System.Collections.Generic.IDictionary Metadata { get; set; }
///
/// The server-assigned name, which is only unique within the same service that originally returns it. If you
/// use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// The normal, successful response of the operation. If the original method returns no data on success, such as
/// `Delete`, the response is `google.protobuf.Empty`. If the original method is standard
/// `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have
/// the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is
/// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
///
[Newtonsoft.Json.JsonPropertyAttribute("response")]
public virtual System.Collections.Generic.IDictionary Response { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// The `Status` type defines a logical error model that is suitable for different programming environments,
/// including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains
/// three pieces of data: error code, error message, and error details. You can find out more about this error model
/// and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
///
public class GoogleRpcStatus : Google.Apis.Requests.IDirectResponseSchema
{
/// The status code, which should be an enum value of google.rpc.Code.
[Newtonsoft.Json.JsonPropertyAttribute("code")]
public virtual System.Nullable Code { get; set; }
///
/// A list of messages that carry the error details. There is a common set of message types for APIs to use.
///
[Newtonsoft.Json.JsonPropertyAttribute("details")]
public virtual System.Collections.Generic.IList> Details { get; set; }
///
/// A developer-facing error message, which should be in English. Any user-facing error message should be
/// localized and sent in the google.rpc.Status.details field, or localized by the client.
///
[Newtonsoft.Json.JsonPropertyAttribute("message")]
public virtual string Message { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
}