All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.tools.framework.importers.swagger.testdata.auth_default.baseline Maven / Gradle / Ivy

WARNING: auth_default.json: x-issuer: Extension name x-issuer has been deprecated, please rename it to x-google-issuer.
WARNING: auth_default.json: x-jwks_uri: Extension name x-jwks_uri has been deprecated, please rename it to x-google-jwks_uri.
WARNING: auth_default.json: x-issuer: Extension name x-issuer has been deprecated, please rename it to x-google-issuer.
WARNING: auth_default.json: x-jwks_uri: Extension name x-jwks_uri has been deprecated, please rename it to x-google-jwks_uri.
WARNING: auth_default.json: Operation 'delete' in path '/v1/pets': Operation does not require an API key; callers may invoke the method without specifying an associated API-consuming project. To enable API key all the SecurityRequirement Objects (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-requirement-object) inside security definition must reference at least one SecurityDefinition of type : 'apiKey'.
WARNING: auth_default.json: Operation 'put' in path '/v1/pets': Operation does not require an API key; callers may invoke the method without specifying an associated API-consuming project. To enable API key all the SecurityRequirement Objects (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-requirement-object) inside security definition must reference at least one SecurityDefinition of type : 'apiKey'.
name: "library-example.cloud.goog"
title: "Google Example Library API"
apis {
  name: "v1.library_example_cloud_goog"
  methods {
    name: "ApiKeyReqOverride"
    request_type_url: "type.googleapis.com/google.protobuf.Empty"
    response_type_url: "type.googleapis.com/namespace.types.SimpleDef"
  }
  methods {
    name: "ApiKeyNotReqInherit"
    request_type_url: "type.googleapis.com/google.protobuf.Empty"
    response_type_url: "type.googleapis.com/namespace.types.SimpleDef"
  }
  methods {
    name: "SimpleMethod"
    request_type_url: "type.googleapis.com/namespace.types.SimpleMethodRequest"
    response_type_url: "type.googleapis.com/namespace.types.SimpleDef"
  }
  methods {
    name: "SecuritySectionEmpty"
    request_type_url: "type.googleapis.com/google.protobuf.Empty"
    response_type_url: "type.googleapis.com/namespace.types.SimpleDef"
  }
  version: "v1"
  source_context {
    file_name: "auth_default.json"
  }
}
types {
  name: "namespace.types.SimpleDef"
  fields {
    kind: TYPE_STRING
    cardinality: CARDINALITY_OPTIONAL
    number: 1
    name: "my_string_a"
    json_name: "myStringA"
  }
  source_context {
    file_name: "namespace.types"
  }
}
types {
  name: "namespace.types.SimpleMethodRequestBody"
  fields {
    kind: TYPE_STRING
    cardinality: CARDINALITY_OPTIONAL
    number: 1
    name: "my_string_a"
    json_name: "myStringA"
  }
  source_context {
    file_name: "namespace.types"
  }
}
types {
  name: "namespace.types.SimpleMethodRequest"
  fields {
    kind: TYPE_MESSAGE
    cardinality: CARDINALITY_OPTIONAL
    number: 1
    name: "my_body_ref"
    type_url: "type.googleapis.com/namespace.types.SimpleMethodRequestBody"
    json_name: "myBodyRef"
  }
  source_context {
    file_name: "namespace.types"
  }
}
documentation {
  summary: "A simple Google Example Library API."
}
http {
  rules {
    selector: "v1.library_example_cloud_goog.ApiKeyReqOverride"
    get: "/v1/pets"
  }
  rules {
    selector: "v1.library_example_cloud_goog.ApiKeyNotReqInherit"
    delete: "/v1/pets"
  }
  rules {
    selector: "v1.library_example_cloud_goog.SimpleMethod"
    post: "/v1/pets"
    body: "my_body_ref"
  }
  rules {
    selector: "v1.library_example_cloud_goog.SecuritySectionEmpty"
    put: "/v1/pets"
  }
}
quota {
}
authentication {
  rules {
    selector: "v1.library_example_cloud_goog.ApiKeyReqOverride"
  }
  rules {
    selector: "v1.library_example_cloud_goog.SimpleMethod"
    requirements {
      provider_id: "test_auth3"
      audiences: "www.test_auth3.com,www.test_auth3_2.com"
    }
    requirements {
      provider_id: "test_auth"
      audiences: "www.test_auth.com"
    }
  }
  rules {
    selector: "v1.library_example_cloud_goog.SecuritySectionEmpty"
  }
  providers {
    id: "test_auth"
    issuer: "[email protected]"
    jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"
    authorization_url: "http://petstore.swagger.wordnik.com/api/oauth/dialog"
  }
  providers {
    id: "test_auth2"
    issuer: "[email protected]"
    authorization_url: "http://petstore.swagger.wordnik.com/api/oauth/dialog"
  }
  providers {
    id: "test_auth3"
    jwks_uri: "https://www.googleapis.com/oauth2/v1/certs3"
    authorization_url: "http://petstore.swagger.wordnik.com/api/oauth/dialog"
  }
}
usage {
  rules {
    selector: "v1.library_example_cloud_goog.ApiKeyReqOverride"
  }
  rules {
    selector: "v1.library_example_cloud_goog.ApiKeyNotReqInherit"
    allow_unregistered_calls: true
  }
  rules {
    selector: "v1.library_example_cloud_goog.SimpleMethod"
  }
  rules {
    selector: "v1.library_example_cloud_goog.SecuritySectionEmpty"
    allow_unregistered_calls: true
  }
}
endpoints {
  name: "library-example.cloud.goog"
}
control {
  environment: "servicecontrol.googleapis.com"
}
system_parameters {
}
experimental {
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy